diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-12-05 12:15:01 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-05 12:15:01 +0300 |
commit | 394d66d42b81b4879d80984138cb4748d03c6ffb (patch) | |
tree | 2cc50a070f84609891dbf4428c9125c08d34a193 | |
parent | cdf63284de7bd9ca5439c76ecbd820551ae506c8 (diff) |
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>
-rwxr-xr-x | git-cvsserver.perl | 6 |
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 ... |