summaryrefslogtreecommitdiff
path: root/git-archimport.perl
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2005-11-16 13:27:28 -0500
committerJunio C Hamano <junkio@cox.net>2005-11-16 13:19:18 -0800
commit8366a10ab21f22deb7ea4a9dbd02effcd279318c (patch)
tree6e4362e3906fcdcbb006cb60f0e67bf0adeb28a3 /git-archimport.perl
parentc0c35d5e419f3bf215103b1e26359aca288c2113 (diff)
downloadgit-8366a10ab21f22deb7ea4a9dbd02effcd279318c.tar.gz
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-xgit-archimport.perl3
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