Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2532

patch apply does not handle binary files

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.3.0
    • None
    • None

    Description

      In OOZIE-2482 there is a patch which contains binary files as well.
      After running

      patch -E -p0 <~/Downloads/OOZIE-2482-2.patch

      the folder sharelib/spark/src/test/resources contains only pi.py, and not the zip files.

      git apply -p0 <~/Downloads/OOZIE-2482-2.patch

      processes the binary part of the patch as well.
      Git documentation claims that patches created with --binary can be applied with git apply, I assume they know that it's not compatible with the patch command.

      Should we change this in the Jenkins job or we should keep this behavior as a gatekeeper to prevent binary files committed to master?

      Attachments

        1. OOZIE-2532-002.patch
          2 kB
          Gézapeti
        2. OOZIE-2532-001.patch
          0.8 kB
          Gézapeti

        Issue Links

          Activity

            People

              gezapeti Gézapeti
              gezapeti Gézapeti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: