blob: 45e5c736f9cdf8b3dffe3c083cf752035eac62fb [file] [log] [blame]
#!/bin/bash
# Gerrit hook that runs on repo upload. Checks to ensure that the pre-upload hook
# has been installed.
cmd=$(git config hookcmd.check-non-public-commits.command)
if [ -z "$cmd" ]; then
echo "Please install hooks by running: hooks/install-hooks.sh"
exit 1
fi