diff options
-rwxr-xr-x | git-cvsimport.perl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 7837c7bfb6..598b9c8da9 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -1026,6 +1026,8 @@ if ($orig_branch) { 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'); |