summaryrefslogtreecommitdiff
path: root/git-cvsserver.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-12-05 01:15:01 -0800
committerJunio C Hamano <gitster@pobox.com>2007-12-05 01:15:01 -0800
commit394d66d42b81b4879d80984138cb4748d03c6ffb (patch)
tree2cc50a070f84609891dbf4428c9125c08d34a193 /git-cvsserver.perl
parentcdf63284de7bd9ca5439c76ecbd820551ae506c8 (diff)
downloadgit-394d66d42b81b4879d80984138cb4748d03c6ffb.tar.gz
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>
Diffstat (limited to 'git-cvsserver.perl')
-rwxr-xr-xgit-cvsserver.perl6
1 files changed, 6 insertions, 0 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 11f5127ce9..ecded3b9cb 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 ...