diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-04 18:13:54 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-04 18:13:54 -0700 |
commit | 110cb41cbf7b7cfefdc1f9fab521f165dd1d5d00 (patch) | |
tree | 4f605e3892d749c2c70b1366cd826299d4da3e57 /git-cvsimport.perl | |
parent | afb28f239ff677cc57fc5dad47c2104537aff922 (diff) | |
parent | 8d9fbe57b3acf756a9325884d11f004ef6f7e884 (diff) | |
download | git-110cb41cbf7b7cfefdc1f9fab521f165dd1d5d00.tar.gz |
Merge branch 'nh/http' into next
* nh/http:
http-fetch: add optional DAV-based pack list
cvsimport: use git-update-ref when updating
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-x | git-cvsimport.perl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 3728294e74..c0ae00bda7 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -677,11 +677,7 @@ my $commit = sub { waitpid($pid,0); die "Error running git-commit-tree: $?\n" if $?; - open(C,">$git_dir/refs/heads/$branch") - or die "Cannot open branch $branch for update: $!\n"; - print C "$cid\n" - or die "Cannot write branch $branch for update: $!\n"; - close(C) + system("git-update-ref refs/heads/$branch $cid") == 0 or die "Cannot write branch $branch for update: $!\n"; if($tag) { |