summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cbc9be5)
raw | patch | inline | side by side (parent: cbc9be5)
author | Andy Whitcroft <apw@shadowen.org> | |
Mon, 4 Jun 2007 09:01:49 +0000 (10:01 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Jun 2007 09:35:49 +0000 (02:35 -0700) |
When in separate remote mode (via -r <remote>) we can now use
the name HEAD for the CVS HEAD. In keeping with git-clone
remotes/<remote>/HEAD is creates as a symbolic ref to the user
specified name for the HEAD which defaults to master.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
the name HEAD for the CVS HEAD. In keeping with git-clone
remotes/<remote>/HEAD is creates as a symbolic ref to the user
specified name for the HEAD which defaults to master.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsimport.perl | patch | blob | history |
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 7837c7bfb61fdbdc8313eb98f317edd4688a47c5..598b9c8da9f0e8eecac3d9ec13a1431b0466854e 100755 (executable)
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
print "DONE; creating $orig_branch branch\n" if $opt_v;
system("git-update-ref", "refs/heads/master", "$remote/$opt_o")
unless -f "$git_dir/refs/heads/master";
+ system("git-symbolic-ref", "$remote/HEAD", "$remote/$opt_o")
+ if ($opt_r && $opt_o ne 'HEAD');
system('git-update-ref', 'HEAD', "$orig_branch");
unless ($opt_i) {
system('git checkout');