1*0a9764feSAndroid Build Coastguard Worker#!/bin/bash 2*0a9764feSAndroid Build Coastguard Worker 3*0a9764feSAndroid Build Coastguard Worker# Gerrit hook that runs on repo upload. Checks to ensure that the pre-upload hook 4*0a9764feSAndroid Build Coastguard Worker# has been installed. 5*0a9764feSAndroid Build Coastguard Worker 6*0a9764feSAndroid Build Coastguard Workercmd=$(git config hookcmd.check-non-public-commits.command) 7*0a9764feSAndroid Build Coastguard Workerif [ -z "$cmd" ]; then 8*0a9764feSAndroid Build Coastguard Worker echo "Please install hooks by running: hooks/install-hooks.sh" 9*0a9764feSAndroid Build Coastguard Worker exit 1 10*0a9764feSAndroid Build Coastguard Workerfi