Skip to content

Commit

Permalink
git-cvsserver runs hooks/post-update
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Dec 5, 2007
1 parent cdf6328 commit 394d66d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
Expand Down

0 comments on commit 394d66d

Please sign in to comment.