]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-cvsexportcommit.perl
Fix an "implicit function definition" warning.
[thirdparty/git.git] / git-cvsexportcommit.perl
index 870554eade66d1744c561d4cba33c41dd7701e55..32a488332122e005bd5007a23111eac1093b940a 100755 (executable)
@@ -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;