You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pre-push-hook.sh 440B

12345678910111213141516
  1. #!/bin/bash
  2. if ! [[ "$2" =~ ^(git@)?(www.)?github.com(:|/)bitcoin/bitcoin(.git)?$ ]]; then
  3. exit 0
  4. fi
  5. while read LINE; do
  6. set -- A $LINE
  7. if [ "$4" != "refs/heads/master" ]; then
  8. continue
  9. fi
  10. if ! ./contrib/verify-commits/verify-commits.sh $3 > /dev/null 2>&1; then
  11. echo "ERROR: A commit is not signed, can't push"
  12. ./contrib/verify-commits/verify-commits.sh
  13. exit 1
  14. fi
  15. done < /dev/stdin