Print an error message if git crup doesn't run hooks because of an error

BUG=171501
R=szager@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12040027

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@178357 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
jochen@chromium.org 12 years ago
parent 009264f9cc
commit adb7a0ceec

@ -139,7 +139,15 @@ fi
status=$? status=$?
if [ "$hooks" = "yes" -a "$status" -eq 0 ]; then if [ "$status" -ne 0 ]; then
cat 1>&2 <<EOF
Please check the preceding terminal output for error messages.
Run 'git submodule status' to see the current state of submodule checkouts.
EOF
exit $status
fi
if [ "$hooks" = "yes" ]; then
"$runhooks" "$runhooks"
status=$? status=$?
fi fi

Loading…
Cancel
Save