Merge "commit-msg: Do not add Change-Id to temp commits" into stable-2.12
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user