Merge #12079: Improve prioritisetransaction test coverage
[bitcoinplatinum.git] / contrib / verify-commits / pre-push-hook.sh
blobc21febb9e9249958fa72ba240e6040a61d927565
1 #!/bin/bash
2 # Copyright (c) 2014-2015 The Bitcoin Core developers
3 # Distributed under the MIT software license, see the accompanying
4 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 if ! [[ "$2" =~ ^(git@)?(www.)?github.com(:|/)bitcoin/bitcoin(.git)?$ ]]; then
7 exit 0
8 fi
10 while read LINE; do
11 set -- A $LINE
12 if [ "$4" != "refs/heads/master" ]; then
13 continue
15 if ! ./contrib/verify-commits/verify-commits.sh $3 > /dev/null 2>&1; then
16 echo "ERROR: A commit is not signed, can't push"
17 ./contrib/verify-commits/verify-commits.sh
18 exit 1
20 done < /dev/stdin