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>
Junio C Hamano committed
Dec 5, 2007 at 01:15 UTC
394d66d42b81b4879d80984138cb4748d03c6ffb
1 file changed
+6
git-cvsserver.perl
+6
@@ -1357,6 +1357,12 @@ sub req_ci
1357
close $pipe || die "bad pipe: $! $?";
1358
}
1359
1360
+ ### Then hooks/post-update
1361
+ $hook = $ENV{GIT_DIR}.'hooks/post-update';
1362
+ if (-x $hook) {
1363
+ system($hook, "refs/heads/$state->{module}");
1364
+ }
1365
+
1366
$updater->update();
1367
1368
# foreach file specified on the command line ...