2014-10-27 08:07:25 +01:00
|
|
|
#!/bin/bash
|
2016-09-20 09:56:14 +02:00
|
|
|
# Copyright (c) 2014-2015 The Bitcoin Core developers
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2018-06-18 13:12:07 +02:00
|
|
|
export LC_ALL=C
|
2016-03-04 08:25:16 +01:00
|
|
|
if ! [[ "$2" =~ ^(git@)?(www.)?github.com(:|/)dashpay/dash(.git)?$ ]]; then
|
2014-10-27 08:07:25 +01:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
while read LINE; do
|
|
|
|
set -- A $LINE
|
|
|
|
if [ "$4" != "refs/heads/master" ]; then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
if ! ./contrib/verify-commits/verify-commits.sh $3 > /dev/null 2>&1; then
|
|
|
|
echo "ERROR: A commit is not signed, can't push"
|
|
|
|
./contrib/verify-commits/verify-commits.sh
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done < /dev/stdin
|