From 394d66d42b81b4879d80984138cb4748d03c6ffb Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 5 Dec 2007 01:15:01 -0800 Subject: [PATCH] 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 --- git-cvsserver.perl | 6 ++++++ 1 file changed, 6 insertions(+) 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 ... -- 2.26.2