aboutsummaryrefslogtreecommitdiffstats
path: root/tools/commit-msg
diff options
context:
space:
mode:
Diffstat (limited to 'tools/commit-msg')
-rwxr-xr-xtools/commit-msg6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/commit-msg b/tools/commit-msg
index 5736bd70d1..cefedd0e8a 100755
--- a/tools/commit-msg
+++ b/tools/commit-msg
@@ -40,6 +40,12 @@ add_ChangeId() {
return
fi
+ # Do not add Change-Id on packaging branches
+ if git branch | grep -q '^\* \(debian\|ubuntu\)/'
+ then
+ return
+ fi
+
# Does Change-Id: already exist? if so, exit (no change).
if grep -i '^Change-Id:' "$MSG" >/dev/null
then