summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-05-08 10:01:32 -0700
committerJunio C Hamano <gitster@pobox.com>2014-05-08 10:01:32 -0700
commitbd513393554217c1f224d1a18cd20529e21055a5 (patch)
tree3dd06dbf130fc807237a660148f53b8e60ad78cf
parent6eca9c0e878dc1e6c8cab64c16183401e0580ea0 (diff)
parent749b668c7db563609de3de7595504f2dca8eef7d (diff)
downloadgit-bd513393554217c1f224d1a18cd20529e21055a5.tar.gz
Merge branch 'cl/p4-use-diff-tree' into maint
"git p4" dealing with changes in binary files were broken by a change in 1.9 release. * cl/p4-use-diff-tree: git-p4: format-patch to diff-tree change breaks binary patches
-rwxr-xr-xgit-p4.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-p4.py b/git-p4.py
index cdfa2df5d8..4ee673994b 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -1311,7 +1311,7 @@ class P4Submit(Command, P4UserMap):
else:
die("unknown modifier %s for %s" % (modifier, path))
- diffcmd = "git diff-tree -p \"%s\"" % (id)
+ diffcmd = "git diff-tree --full-index -p \"%s\"" % (id)
patchcmd = diffcmd + " | git apply "
tryPatchCmd = patchcmd + "--check -"
applyPatchCmd = patchcmd + "--check --apply -"