diff options
author | Matt Corallo <git@bluematt.me> | 2016-05-21 01:44:29 -0700 |
---|---|---|
committer | Peter Todd <pete@petertodd.org> | 2016-05-21 11:26:10 +0200 |
commit | 9523e8adafd24f1c9358c437b857f0f2f25eeb47 (patch) | |
tree | de63da191c49eb0f94344cefe13fe58ce48bd98b /contrib/verify-commits | |
parent | f7d4a25fe6b1bd52e70fa0779d1cd145f32bd2ab (diff) |
Make verify-commits path-independent
Diffstat (limited to 'contrib/verify-commits')
-rwxr-xr-x | contrib/verify-commits/verify-commits.sh | 1 |
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" |