[PATCH] git-cvsimport: perform initial checkout correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 $?;
 	}
 }

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]