aboutsummaryrefslogtreecommitdiff
path: root/contrib/verify-commits
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-05-21 01:44:29 -0700
committerPeter Todd <pete@petertodd.org>2016-05-21 11:26:10 +0200
commit9523e8adafd24f1c9358c437b857f0f2f25eeb47 (patch)
treede63da191c49eb0f94344cefe13fe58ce48bd98b /contrib/verify-commits
parentf7d4a25fe6b1bd52e70fa0779d1cd145f32bd2ab (diff)
Make verify-commits path-independent
Diffstat (limited to 'contrib/verify-commits')
-rwxr-xr-xcontrib/verify-commits/verify-commits.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/verify-commits/verify-commits.sh b/contrib/verify-commits/verify-commits.sh
index c9d2b96d8c..a859e67852 100755
--- a/contrib/verify-commits/verify-commits.sh
+++ b/contrib/verify-commits/verify-commits.sh
@@ -3,6 +3,7 @@
# shell anyone uses today supports it, so its probably fine
DIR=$(dirname "$0")
+[ "/${DIR#/}" != "$DIR" ] && DIR=$(dirname "$(pwd)/$0")
echo "Please verify all commits in the following list are not evil:"
git log "$DIR"