Skip to content

Commit 71aaed2

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[tools] Ignore bot generated patches" into unmaintained/yoga
2 parents 7b7bac3 + bf57a8a commit 71aaed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/check-cherry-picks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ $parent_number -eq 2 ]; then
1515
commit_hash=$(git show --format='%P' --quiet | awk '{print $NF}')
1616
fi
1717

18-
if git show --format='%aE' HEAD~ --quiet | grep -qi '[email protected]'; then
18+
if git show --format='%aE' --quiet $commit_hash | grep -qi '[email protected]'; then
1919
echo 'Bot generated change; ignoring'
2020
exit 0
2121
fi

0 commit comments

Comments
 (0)