aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorcoqbot-app[bot]2020-11-24 15:54:59 +0000
committerGitHub2020-11-24 15:54:59 +0000
commit80110dcfa2c52f719bfcce2b0b2b976de7faa174 (patch)
tree2a88d382efa07187330b9533dc2dfd188bb12378 /dev
parentb4cc5fa61236b6c6d716d2cf19947022658bd570 (diff)
parentc3b260cfd5e74501aa0101b9e75f050bd6a3566d (diff)
Merge PR #13466: Fix linter: incorrect commit was picked in CI
Reviewed-by: ejgallego
Diffstat (limited to 'dev')
-rwxr-xr-xdev/lint-repository.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/lint-repository.sh b/dev/lint-repository.sh
index 2e8a7455de..7701264ad1 100755
--- a/dev/lint-repository.sh
+++ b/dev/lint-repository.sh
@@ -9,10 +9,10 @@
CODE=0
-if [[ $(git log -n 1 --pretty='format:%s') == "Bot merge"* ]]; then
- # The FIRST parent of bot merges is from the PR, the second is
+if [[ $(git log -n 1 --pretty='format:%s') == "[CI merge]"* ]]; then
+ # The second parent of bot merges is from the PR, the first is
# current master
- head=$(git rev-parse HEAD~)
+ head=$(git rev-parse HEAD^2)
else
head=$(git rev-parse HEAD)
fi