mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
0766d1cac3
Years are set according to 'git log' history
21 lines
632 B
Bash
Executable File
21 lines
632 B
Bash
Executable File
#!/bin/bash
|
|
# 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.
|
|
|
|
if ! [[ "$2" =~ ^(git@)?(www.)?github.com(:|/)bitcoin/bitcoin(.git)?$ ]]; then
|
|
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
|