* [PATCH] git-cvsimport: perform initial checkout correctly
@ 2007-03-18 9:16 Junio C Hamano
0 siblings, 0 replies; only message in thread
From: Junio C Hamano @ 2007-03-18 9:16 UTC (permalink / raw
To: git
Often people wonder why cvsimport does not perform the initial
checkout even though -i option is not given.
---
git-cvsimport.perl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 1a1ba7b..e269e26 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -1017,7 +1017,7 @@ if ($orig_branch) {
unless -f "$git_dir/refs/heads/master";
system('git-update-ref', 'HEAD', "$orig_branch");
unless ($opt_i) {
- system('git checkout');
+ system('git checkout -f));
die "checkout failed: $?\n" if $?;
}
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-18 9:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-18 9:16 [PATCH] git-cvsimport: perform initial checkout correctly Junio C Hamano
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 read-only IMAP folder(s) and NNTP newsgroup(s).