diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-11-05 10:42:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-05 10:42:46 -0700 |
commit | 3089c2b97a4d73866375a0ba815fc2fa4e2a1c1e (patch) | |
tree | de988e8ec082d09e74dcd3d67b542c46577f5a35 /contrib | |
parent | 06cfa8a8589740b9dd4820ad1c2eff4b3d968de7 (diff) | |
parent | 8b130262fb7b5d09df2af63f47d9bff1da220bfb (diff) | |
download | git-3089c2b97a4d73866375a0ba815fc2fa4e2a1c1e.tar.gz |
Merge branch 'aw/git-p4-deletion'
* aw/git-p4-deletion:
Fix handling of git-p4 on deleted files
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/fast-import/git-p4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index c1ea643ace..04ce7e3b02 100755 --- a/contrib/fast-import/git-p4 +++ b/contrib/fast-import/git-p4 @@ -706,7 +706,9 @@ class P4Submit(Command): submitTemplate = self.prepareLogMessage(template, logMessage) if os.environ.has_key("P4DIFF"): del(os.environ["P4DIFF"]) - diff = p4_read_pipe("diff -du ...") + diff = "" + for editedFile in editedFiles: + diff += p4_read_pipe("diff -du %r" % editedFile) newdiff = "" for newFile in filesToAdd: |