Skip to content

Commit 9523e8a

Browse files
TheBlueMattpetertodd
authored andcommitted
Make verify-commits path-independent
1 parent f7d4a25 commit 9523e8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/verify-commits/verify-commits.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# shell anyone uses today supports it, so its probably fine
44

55
DIR=$(dirname "$0")
6+
[ "/${DIR#/}" != "$DIR" ] && DIR=$(dirname "$(pwd)/$0")
67

78
echo "Please verify all commits in the following list are not evil:"
89
git log "$DIR"

0 commit comments

Comments
 (0)