diff options
Diffstat (limited to 'git-archimport.perl')
-rwxr-xr-x | git-archimport.perl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git-archimport.perl b/git-archimport.perl index e22c81628d..23becb7962 100755 --- a/git-archimport.perl +++ b/git-archimport.perl @@ -410,8 +410,7 @@ foreach my $ps (@psets) { open HEAD, ">$git_dir/refs/heads/$ps->{branch}"; print HEAD $commitid; close HEAD; - unlink ("$git_dir/HEAD"); - symlink("refs/heads/$ps->{branch}","$git_dir/HEAD"); + system('git-update-ref', 'HEAD', "$ps->{branch}"); # tag accordingly ptag($ps->{id}, $commitid); # private tag |