* [PATCH] git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs.
[not found] <20070227181721.GA4244@bogon.ms20.nix>
@ 2007-02-28 12:35 ` Gerrit Pape
2007-03-01 1:17 ` Simon 'corecode' Schubert
2007-03-01 1:29 ` Martin Langhoff
0 siblings, 2 replies; 3+ messages in thread
From: Gerrit Pape @ 2007-02-28 12:35 UTC (permalink / raw)
To: git
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs.
2007-02-28 12:35 ` [PATCH] git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs Gerrit Pape
@ 2007-03-01 1:17 ` Simon 'corecode' Schubert
2007-03-01 1:29 ` Martin Langhoff
1 sibling, 0 replies; 3+ messages in thread
From: Simon 'corecode' Schubert @ 2007-03-01 1:17 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 575 bytes --]
Gerrit Pape wrote:
> 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.
thanks, i've been meaning to search for the cause of this.
cheers
simon
--
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs.
2007-02-28 12:35 ` [PATCH] git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs Gerrit Pape
2007-03-01 1:17 ` Simon 'corecode' Schubert
@ 2007-03-01 1:29 ` Martin Langhoff
1 sibling, 0 replies; 3+ messages in thread
From: Martin Langhoff @ 2007-03-01 1:29 UTC (permalink / raw)
To: git
Ack. I though I had sent this same fix about a month ago as
"cvsexportcommit: do not delete .msg when performing manual commits"
461cc1944cf17210149c20bafa7dbbc467b2e89f
but it looks like I didn't. Shame on me.
martin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-01 1:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20070227181721.GA4244@bogon.ms20.nix>
2007-02-28 12:35 ` [PATCH] git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs Gerrit Pape
2007-03-01 1:17 ` Simon 'corecode' Schubert
2007-03-01 1:29 ` Martin Langhoff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).