Skip to content

Commit

Permalink
make pre-receive repo-specific hooks bail on non-zero exit
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaramc committed Nov 9, 2017
1 parent cecd33e commit 210fdf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/triggers/repo-specific-hooks
Expand Up @@ -111,8 +111,8 @@ for h in $0.*; do
[ -x $h ] || continue
if [ $type = args ]
then
$h $@
$h $@ || { [ $0 = hooks/pre-receive ] && exit 1; }
else
echo "$stdin" | $h
echo "$stdin" | $h || { [ $0 = hooks/pre-receive ] && exit 1; }
fi
done

0 comments on commit 210fdf1

Please sign in to comment.