[PATCH] git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs.
- From
Gerrit Pape <pape@smarden.org>
- Date
- Feb 28, 2007, 12:35 UTC
- Message-ID
- <20070228123539.23809.qmail@d6daeb0e3466c1.315fe32.mid.smarden.org>
- In-Reply-To
- <20070227181721.GA4244@bogon.ms20.nix>
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> --- git-cvsexportcommit.perl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl index d08216c..67224b4 100755 --- a/git-cvsexportcommit.perl +++ b/git-cvsexportcommit.perl @@ -248,13 +248,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 <<END;
-- 1.5.0.1