github.com/jghiloni/cli@v6.28.1-0.20170628223758-0ce05fe032a2+incompatible/githooks/pre-push/check-committer (about)

     1  #!/bin/sh
     2  
     3  while read LOCAL_REF LOCAL_SHA REMOTE_REF REMOTE_SHA
     4  do
     5    if git show $LOCAL_SHA --format=fuller | grep -i -q 'Commit: \+pivotal '; then
     6      echo "Committer on $LOCAL_SHA is Pivotal."
     7      echo 'Please run "git fr".'
     8      exit 1
     9    fi
    10  done