Skip to content

Commit 394d66d

Browse files
committed
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>
1 parent cdf6328 commit 394d66d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

git-cvsserver.perl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,12 @@ sub req_ci
13571357
close $pipe || die "bad pipe: $! $?";
13581358
}
13591359

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+
13601366
$updater->update();
13611367

13621368
# foreach file specified on the command line ...

0 commit comments

Comments
 (0)