diff options
| author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-05-14 02:37:52 -0500 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.cz> | 2012-05-15 13:21:43 +0200 |
| commit | 31dca4d87f51045d2b0568b4020a4d549375b215 (patch) | |
| tree | 520a04907a40ac00ad8457ebb622a3d9b27eabfe | |
| parent | dbae2cbc29f960916469f33a9dd153157a42c64a (diff) | |
fix issue with repeated I in case of amend commit
Change-Id: I2f0f02fb545ae6d63f2d4e46327f6ee402ab608c
Signed-off-by: Petr Mladek <pmladek@suse.cz>
| -rwxr-xr-x | git-hooks/commit-msg | 2 |
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" |
