Skip to content

Commit

Permalink
don't run postupdate unless master has been pushed
Browse files Browse the repository at this point in the history
thanks to Joseph Huttner for the idea
  • Loading branch information
gitolite tester authored and sitaramc committed May 7, 2016
1 parent b921a19 commit 34da708
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/Gitolite/Hooks/PostUpdate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use warnings;

sub post_update {
trace( 3, 'post-up', @ARGV );
exit 0 unless grep( m(^refs/heads/master$), @ARGV );
# this is the *real* post_update hook for gitolite

tsh_try("git ls-tree --name-only master");
Expand Down

0 comments on commit 34da708

Please sign in to comment.