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