summaryrefslogtreecommitdiffstats
path: root/util/git-hooks/commit-msg
diff options
context:
space:
mode:
Diffstat (limited to 'util/git-hooks/commit-msg')
-rwxr-xr-xutil/git-hooks/commit-msg9
1 files changed, 4 insertions, 5 deletions
diff --git a/util/git-hooks/commit-msg b/util/git-hooks/commit-msg
index b9217e081..811cceddf 100755
--- a/util/git-hooks/commit-msg
+++ b/util/git-hooks/commit-msg
@@ -44,11 +44,10 @@ add_ChangeId() {
return
fi
- # *Do* add Change-Id to temp commits (original code bails out here)
- # if echo "$clean_message" | head -1 | grep -q '^\(fixup\|squash\)!'
- # then
- # return
- # fi
+ if echo "$clean_message" | head -1 | grep -q '^\(fixup\|squash\)!'
+ then
+ return
+ fi
if test "false" = "`git config --bool --get gerrit.createChangeId`"
then