Skip to content

Commit

Permalink
Merge PR #13466: Fix linter: incorrect commit was picked in CI
Browse files Browse the repository at this point in the history
Reviewed-by: ejgallego
  • Loading branch information
coqbot-app[bot] committed Nov 24, 2020
2 parents b4cc5fa + c3b260c commit 80110dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev/lint-repository.sh
Expand Up @@ -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
Expand Down

0 comments on commit 80110dc

Please sign in to comment.