Fix support for deletions in git-p4 submit when using --apply-as-patch by filtering out deletions in the diff-tree output.
Signed-off-by: Simon Hausmann <hausmann@kde.org>
This commit is contained in:
parent
04219c04b7
commit
5d0b6042d4
@ -197,7 +197,7 @@ class P4Sync(Command):
|
||||
die("unknown modifier %s for %s" % (modifier, path))
|
||||
|
||||
if self.applyAsPatch:
|
||||
system("git-diff-tree -p \"%s^\" \"%s\" | patch -p1" % (id, id))
|
||||
system("git-diff-tree -p --diff-filter=ACMRTUXB \"%s^\" \"%s\" | patch -p1" % (id, id))
|
||||
else:
|
||||
system("git-diff-files --name-only -z | git-update-index --remove -z --stdin")
|
||||
system("git cherry-pick --no-commit \"%s\"" % id)
|
||||
|
Loading…
Reference in New Issue
Block a user