Skip to content

Commit f17e23e

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[tools] Ignore bot generated patches" into unmaintained/zed
2 parents c623eab + fe0eb7a commit f17e23e

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
@@ -14,7 +14,7 @@ if [ $parent_number -eq 2 ]; then
1414
commit_hash=$(git show --format='%P' --quiet | awk '{print $NF}')
1515
fi
1616

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

0 commit comments

Comments
 (0)