{"thread":{"id":"7290","subject":"[PATCH] git-cvsimport: perform initial checkout correctly","startedAt":"2007-03-18T09:16:22Z","lastAt":"2007-03-18T09:16:22Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"37361","messageId":"7vlkhunc7t.fsf@assigned-by-dhcp.cox.net","threadId":"7290","inReplyTo":null,"subject":"[PATCH] git-cvsimport: perform initial checkout correctly","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-03-18T09:16:22Z","receivedAt":"2007-03-18T09:16:22Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Often people wonder why cvsimport does not perform the initial\ncheckout even though -i option is not given.\n\n---\n git-cvsimport.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-cvsimport.perl b/git-cvsimport.perl\nindex 1a1ba7b..e269e26 100755\n--- a/git-cvsimport.perl\n+++ b/git-cvsimport.perl\n@@ -1017,7 +1017,7 @@ if ($orig_branch) {\n \t\tunless -f \"$git_dir/refs/heads/master\";\n \tsystem('git-update-ref', 'HEAD', \"$orig_branch\");\n \tunless ($opt_i) {\n-\t\tsystem('git checkout');\n+\t\tsystem('git checkout -f));\n \t\tdie \"checkout failed: $?\\n\" if $?;\n \t}\n }\n"}]}