Drew Davenport | 8a167fc | 2024-09-23 12:06:40 -0600 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
3 | # Gerrit hook that runs on repo upload. Checks to ensure that the pre-upload hook | ||||
4 | # has been installed. | ||||
5 | |||||
6 | cmd=$(git config hookcmd.check-non-public-commits.command) | ||||
7 | if [ -z "$cmd" ]; then | ||||
8 | echo "Please install hooks by running: hooks/install-hooks.sh" | ||||
9 | exit 1 | ||||
10 | fi |