Merge "commit-msg: Do not add Change-Id to temp commits" into stable-2.12

This commit is contained in:
David Pursehouse
2015-11-12 17:25:34 +00:00
committed by Gerrit Code Review

View File

@@ -38,6 +38,12 @@ add_ChangeId() {
return
fi
# Do not add Change-Id to temp commits
if echo "$clean_message" | head -1 | grep -q '^\(fixup\|squash\)!'
then
return
fi
if test "false" = "`git config --bool --get gerrit.createChangeId`"
then
return