From: Junio C Hamano Date: Wed, 5 Dec 2007 09:15:01 +0000 (-0800) Subject: git-cvsserver runs hooks/post-update X-Git-Tag: v1.5.4-rc0~57^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=394d66d42b81b4879d80984138cb4748d03c6ffb;p=git.git 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 --- diff --git a/git-cvsserver.perl b/git-cvsserver.perl index 11f5127ce..ecded3b9c 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -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 ...