Don't run post-update hook unless a ref changed
commit3e6e152c7496c1acd298ec2b916d62acb56f11c0
authorShawn O. Pearce <spearce@spearce.org>
Wed, 7 Mar 2007 21:50:43 +0000 (7 16:50 -0500)
committerJunio C Hamano <junkio@cox.net>
Wed, 7 Mar 2007 22:45:42 +0000 (7 14:45 -0800)
tree50ed503b0f9fd8f20c8dc79645f0be6d50f7838a
parent8e663d9e90d3d9efc9bb99ad597a6819efe625ce
Don't run post-update hook unless a ref changed

There is little point in executing the post-update hook if all refs
had an error and were unable to be updated.  In this case nothing
new is reachable within the repository, and there is no state change
for the post-update hook to be interested in.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
receive-pack.c