git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Next: Simon 'corecode' Schubert
Message 1 of 3 in “git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs.”
  1. git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs.Gerrit Pape, Feb 28, 2007
  2. Simon 'corecode' SchubertMar 1, 2007
  3. Martin LanghoffMar 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.