From: Gerrit Pape Date: Wed, 28 Feb 2007 12:35:39 +0000 (+0000) Subject: git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs. X-Git-Tag: v1.5.0.3~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf70c16fc0661ec562b01222055b8be4bfd1a7e7;p=git.git git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs. Unless the -c option is given, and the commit to cvs was successful, .msg shouldn't be deleted to be able to run the command suggested by git-cvsexportcommit. See http://bugs.debian.org/412732 Signed-off-by: Gerrit Pape Signed-off-by: Junio C Hamano --- diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl index 870554ead..32a488332 100755 --- a/git-cvsexportcommit.perl +++ b/git-cvsexportcommit.perl @@ -241,13 +241,14 @@ if ($opt_c) { die "Exiting: The commit did not succeed"; } print "Committed successfully to CVS\n"; + # clean up + unlink(".msg"); } else { print "Ready for you to commit, just run:\n\n $cmd\n"; } # clean up unlink(".cvsexportcommit.diff"); -unlink(".msg"); sub usage { print STDERR <