Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/cvs'
author
Junio C Hamano
<junkio@cox.net>
Fri, 28 Jul 2006 20:18:19 +0000
(13:18 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 28 Jul 2006 20:18:19 +0000
(13:18 -0700)
* js/cvs:
cvsserver: imitate git-update-ref when committing
git-cvsserver.perl
patch
|
blob
|
history
raw
(from parent 1:
205be1e
)
diff --git
a/git-cvsserver.perl
b/git-cvsserver.perl
index 5b73837bb1e1f0b29ec089942a6a785fc38f1cbc..2130d57020de2dae570b7be0d9a516389bd1829f 100755
(executable)
--- a/
git-cvsserver.perl
+++ b/
git-cvsserver.perl
@@
-1142,9
+1142,7
@@
sub req_ci
exit;
}
- open FILE, ">", "$ENV{GIT_DIR}refs/heads/$state->{module}";
- print FILE $commithash;
- close FILE;
+ print LOCKFILE $commithash;
$updater->update();
@@
-1171,7
+1169,9
@@
sub req_ci
}
close LOCKFILE;
- unlink($lockfile);
+ my $reffile = "$ENV{GIT_DIR}refs/heads/$state->{module}";
+ unlink($reffile);
+ rename($lockfile, $reffile);
chdir "/";
print "ok\n";