@matheusbsbs / matheus-bagliano / commits / cf70c16fc0
Fork 0

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 <pape@smarden.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Gerrit Pape committed Feb 28, 2007 at 12:35 UTC cf70c16fc0661ec562b01222055b8be4bfd1a7e7
1 file changed +2 -1
git-cvsexportcommit.perl
+2 -1
@@ -241,13 +241,14 @@ if ($opt_c) {
241 die "Exiting: The commit did not succeed";
242 }
243 print "Committed successfully to CVS\n";
244 + # clean up
245 + unlink(".msg");
246 } else {
247 print "Ready for you to commit, just run:\n\n $cmd\n";
248 }
249
250 # clean up
251 unlink(".cvsexportcommit.diff");
250 -unlink(".msg");
252
253 sub usage {
254 print STDERR <<END;