forked from hush/hush3
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.
19 lines
613 B
19 lines
613 B
#!/bin/bash
|
|
# Copyright (c) 2016-2021 The Hush developers
|
|
# Distributed under the GPLv3 software license, see the accompanying
|
|
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
|
|
if ! [[ "$2" =~ [git@]?[www.]?hush.is[:|/]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
|
|
|