diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-03-07 16:50:24 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-07 14:45:40 -0800 |
commit | 8e663d9e90d3d9efc9bb99ad597a6819efe625ce (patch) | |
tree | 5a232a8f535a367fdedf49b6b8aa3d627280234d /receive-pack.c | |
parent | 84da035f3862b72d103d21104a1f67b003d17ebb (diff) | |
download | git-8e663d9e90d3d9efc9bb99ad597a6819efe625ce.tar.gz |
Move post-update hook to after all other activity
As the post-update hook is meant to run after we have completed the
receipt of the pushed changes, and it might actually try to kick off
a `repack -a -d`, we should delay on invoking it until after we have
removed the *.keep file on the uploaded pack (if we kept the pack).
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'receive-pack.c')
-rw-r--r-- | receive-pack.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/receive-pack.c b/receive-pack.c index dda98549ca..d39aebac1e 100644 --- a/receive-pack.c +++ b/receive-pack.c @@ -206,12 +206,10 @@ static void run_update_post_hook(struct command *cmd) static void execute_commands(void) { struct command *cmd = commands; - while (cmd) { update(cmd); cmd = cmd->next; } - run_update_post_hook(commands); } static void read_head_info(void) @@ -456,6 +454,7 @@ int main(int argc, char **argv) unlink(pack_lockfile); if (report_status) report(unpack_status); + run_update_post_hook(commands); } return 0; } |