From f7fbc981a4effde51446c2229e34f2fc9210d31d Mon Sep 17 00:00:00 2001 From: Pete Wyckoff Date: Sun, 9 Sep 2012 16:16:07 -0400 Subject: git p4: test clean-up after failed submit, fix added files Test a variety of cases where a patch failed to apply to p4 and had to be cleaned up. If the patch failed to apply cleanly, do not try to remove to-be-added files, as they have not really been added yet. Signed-off-by: Pete Wyckoff Acked-by: Luke Diamand Signed-off-by: Junio C Hamano --- git-p4.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'git-p4.py') diff --git a/git-p4.py b/git-p4.py index 39fa2e186f..0481f432f2 100755 --- a/git-p4.py +++ b/git-p4.py @@ -1200,8 +1200,6 @@ class P4Submit(Command, P4UserMap): if not patch_succeeded: for f in editedFiles: p4_revert(f) - for f in filesToAdd: - os.remove(f) return False system(applyPatchCmd) -- cgit v1.2.1