summaryrefslogtreecommitdiff
path: root/git-hooks
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-05-14 02:37:52 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-05-14 02:37:52 -0500
commit73c40f95742b6b4854cae177a711098dc106c35d (patch)
tree108b2c48e5835d5cc9d5abbc8f75418eb748986a /git-hooks
parentf5ea2b5fa85660844daf092e84db45a759bf126d (diff)
fix issue with repeated I in case of amend commit
Change-Id: I2f0f02fb545ae6d63f2d4e46327f6ee402ab608c
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/commit-msg2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/commit-msg b/git-hooks/commit-msg
index d784d6561130..ad6400d1fcde 100755
--- a/git-hooks/commit-msg
+++ b/git-hooks/commit-msg
@@ -100,7 +100,7 @@ add_ChangeId() {
return
fi
- id=`grep -i '^Change-Id:' "$MSG" | sed -e "s/.*://"`
+ id=`grep -i '^Change-Id:' "$MSG" | sed -e "s/.*: I//"`
temp_msg=`grep -v -i '^Change-Id:' "$MSG"`
echo "$temp_msg" > "$MSG"