cvsimport: add <remote>/HEAD reference in separate remotes more
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>
This commit is contained in:
parent
cbc9be5ca3
commit
06baffd3df
@ -1026,6 +1026,8 @@ if ($orig_branch) {
|
|||||||
print "DONE; creating $orig_branch branch\n" if $opt_v;
|
print "DONE; creating $orig_branch branch\n" if $opt_v;
|
||||||
system("git-update-ref", "refs/heads/master", "$remote/$opt_o")
|
system("git-update-ref", "refs/heads/master", "$remote/$opt_o")
|
||||||
unless -f "$git_dir/refs/heads/master";
|
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");
|
system('git-update-ref', 'HEAD', "$orig_branch");
|
||||||
unless ($opt_i) {
|
unless ($opt_i) {
|
||||||
system('git checkout');
|
system('git checkout');
|
||||||
|
Loading…
Reference in New Issue
Block a user