diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2017-11-09 17:01:31 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2017-11-09 17:23:24 +0530 |
commit | 210fdf158993d0c0a17e81fd7278e644b3242366 (patch) | |
tree | 5a51145f7ac6d87d6739dcd357eae7ff9b834d1f | |
parent | change silent ignore to warning... (diff) | |
download | gitolite-gentoo-210fdf158993d0c0a17e81fd7278e644b3242366.tar.gz gitolite-gentoo-210fdf158993d0c0a17e81fd7278e644b3242366.tar.bz2 gitolite-gentoo-210fdf158993d0c0a17e81fd7278e644b3242366.zip |
make pre-receive repo-specific hooks bail on non-zero exit
-rwxr-xr-x | src/triggers/repo-specific-hooks | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/triggers/repo-specific-hooks b/src/triggers/repo-specific-hooks index bba7a58..a4c86cc 100755 --- a/src/triggers/repo-specific-hooks +++ b/src/triggers/repo-specific-hooks @@ -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 |