Git "Apply Patch" functionality does not seem to honor "Base Path" input

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 1.5.1
    • Affects Version/s: 1.5.0
    • Component/s: Git
    • None
    • Environment:

      Mac OS X Lion

      I have two git repositories with a slightly different layout (both websites, one with a public_html directory, the other with a httpdocs directory).

      When trying to move some changes from one to the other using a Patch file I need to stripe 2 pieces of the path and set a new Base Path.

      The latter (the Base Path) is not processed in the Git command.

      The full command by STREE with no trace of my Base Path is:
      git -c diff.mnemonicprefix=false -c core.quotepath=false apply -v --reject -p 2 /path/to/patch.diff

      Adding the --directory parameter makes this command work:

      git -c diff.mnemonicprefix=false -c core.quotepath=false apply -v --reject -p 2 /path/to/patch.diff --directory httpdocs/

              Assignee:
              Unassigned
              Reporter:
              mac mac
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: