mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 18:49:30 +01:00
f47dda2c58
-BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT- Commits of previous years: * 2020:fa0074e2d8
* 2019:aaaaad6ac9
22 lines
660 B
Bash
Executable File
22 lines
660 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) 2014-2021 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
export LC_ALL=C
|
|
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.py "$3" > /dev/null 2>&1; then
|
|
echo "ERROR: A commit is not signed, can't push"
|
|
./contrib/verify-commits/verify-commits.py
|
|
exit 1
|
|
fi
|
|
done < /dev/stdin
|