Skip to content

Commit

Permalink
git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gerrit Pape authored and Junio C Hamano committed Feb 28, 2007
1 parent 163d7b9 commit cf70c16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-cvsexportcommit.perl
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,14 @@
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;
Expand Down

0 comments on commit cf70c16

Please sign in to comment.