Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-cvsserver runs hooks/post-update
author
Junio C Hamano
<gitster@pobox.com>
Wed, 5 Dec 2007 09:15:01 +0000
(
01:15
-0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 5 Dec 2007 09:15:01 +0000
(
01:15
-0800)
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>
git-cvsserver.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
cdf6328
)
diff --git
a/git-cvsserver.perl
b/git-cvsserver.perl
index 11f5127ce95a376200c12b7a620546e957dfac56..ecded3b9cba9e18117f7372af37e9b56203a6fcf 100755
(executable)
--- 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 ...