• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
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