We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80191e1 commit daf6ea6Copy full SHA for daf6ea6
verify_commit_messages_in_branch.sh
@@ -5,9 +5,9 @@
5
set -eu
6
7
script_dir=$(dirname "$0")
8
-commits_since_master=$(git -C $script_dir rev-list HEAD ^origin/master)
+commits_since_master=$(git rev-list HEAD ^origin/master)
9
10
while read -r commit_hash; do
11
- commit_message="$(git -C $script_dir log --format=%B -n 1 $commit_hash)"
+ commit_message="$(git log --format=%B -n 1 $commit_hash)"
12
python3 $script_dir/bad_commit_message_blocker.py --message "$commit_message"
13
done <<< "$commits_since_master"
0 commit comments