diff options
author | Pavel Roskin <proski@gnu.org> | 2005-11-16 19:27:28 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-16 22:19:18 +0100 |
commit | 8366a10ab21f22deb7ea4a9dbd02effcd279318c (patch) | |
tree | 6e4362e3906fcdcbb006cb60f0e67bf0adeb28a3 /git-archimport.perl | |
parent | Disallow empty pattern in "git grep" (diff) | |
download | git-8366a10ab21f22deb7ea4a9dbd02effcd279318c.tar.xz git-8366a10ab21f22deb7ea4a9dbd02effcd279318c.zip |
symref support for import scripts
Fix git import script not to assume that .git/HEAD is a symlink.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 |