Changeset View
Changeset View
Standalone View
Standalone View
contrib/verify-commits/pre-push-hook.sh
#!/bin/bash | #!/usr/bin/env bash | ||||
# Copyright (c) 2014-2015 The Bitcoin Core developers | # Copyright (c) 2014-2015 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
if ! [[ "$2" =~ ^(git@)?(www.)?github.com(:|/)bitcoin/bitcoin(.git)?$ ]]; then | if ! [[ "$2" =~ ^(git@)?(www.)?github.com(:|/)bitcoin/bitcoin(.git)?$ ]]; then | ||||
exit 0 | exit 0 | ||||
fi | fi | ||||
Show All 11 Lines |