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

[PATCH] git-cvsimport: perform initial checkout correctly

From
Junio C Hamano <junkio@cox.net>
Date
Mar 18, 2007, 09:16 UTC
Message-ID
<7vlkhunc7t.fsf@assigned-by-dhcp.cox.net>

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 $?;
 	}
 }
Message 1 of 1 in “git-cvsimport: perform initial checkout correctly”
  1. git-cvsimport: perform initial checkout correctlyJunio C Hamano, Mar 18, 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.