提交 922819c3 编写于 作者: J Junio C Hamano

Merge branch 'js/cvs'

* js/cvs:
  cvsserver: imitate git-update-ref when committing
......@@ -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";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册