Merge branch 'js/cvs'
* js/cvs: cvsserver: imitate git-update-ref when committingmaint
commit
922819c3d5
|
|
@ -1142,9 +1142,7 @@ sub req_ci
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
open FILE, ">", "$ENV{GIT_DIR}refs/heads/$state->{module}";
|
print LOCKFILE $commithash;
|
||||||
print FILE $commithash;
|
|
||||||
close FILE;
|
|
||||||
|
|
||||||
$updater->update();
|
$updater->update();
|
||||||
|
|
||||||
|
|
@ -1171,7 +1169,9 @@ sub req_ci
|
||||||
}
|
}
|
||||||
|
|
||||||
close LOCKFILE;
|
close LOCKFILE;
|
||||||
unlink($lockfile);
|
my $reffile = "$ENV{GIT_DIR}refs/heads/$state->{module}";
|
||||||
|
unlink($reffile);
|
||||||
|
rename($lockfile, $reffile);
|
||||||
chdir "/";
|
chdir "/";
|
||||||
|
|
||||||
print "ok\n";
|
print "ok\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue