mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
git-cvsserver runs hooks/post-update
Although we have introduced post-receive, we have not deprecated post-update hook. This adds support for it to emulate receive-pack better. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
cdf63284de
commit
394d66d42b
|
@ -1357,6 +1357,12 @@ sub req_ci
|
|||
close $pipe || die "bad pipe: $! $?";
|
||||
}
|
||||
|
||||
### Then hooks/post-update
|
||||
$hook = $ENV{GIT_DIR}.'hooks/post-update';
|
||||
if (-x $hook) {
|
||||
system($hook, "refs/heads/$state->{module}");
|
||||
}
|
||||
|
||||
$updater->update();
|
||||
|
||||
# foreach file specified on the command line ...
|
||||
|
|
Loading…
Reference in a new issue