diff options
author | Gerrit Pape <pape@smarden.org> | 2007-02-28 13:35:39 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-28 19:22:50 +0100 |
commit | cf70c16fc0661ec562b01222055b8be4bfd1a7e7 (patch) | |
tree | 66537bf0f53985ba4d5681a061f8f99f093cf768 /git-cvsexportcommit.perl | |
parent | builtin-fmt-merge-msg: fix bugs in --file option (diff) | |
download | git-cf70c16fc0661ec562b01222055b8be4bfd1a7e7.tar.xz git-cf70c16fc0661ec562b01222055b8be4bfd1a7e7.zip |
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>
Diffstat (limited to '')
-rwxr-xr-x | git-cvsexportcommit.perl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl index 870554eade..32a4883321 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 <<END; |