pre-upload: Add comment to --ignore=GERRIT_CHANGE_ID option

This check for Change-Id: is present in since kernel 3.15,
introduced in commit 7ebd05ef1646e8cbef54e38343722741a4744626 upstream.

For upstream kernel, Change-Id: is noise, but as we do use Gerrit to
track commits in all our repos, it is actually required for us.
Disable the check for it to suppress the warning.

TEST=Presubmit passes.

Change-Id: Iec8d9dd4ec0b3c95eb9559d95d01996757840055
Signed-off-by: Filipe Brandenburger <>
Reviewed-by: Mike Frysinger <>
diff --git a/ b/
index 11b51fe..1d2c5b1 100755
--- a/
+++ b/
@@ -1098,6 +1098,9 @@
   # information on that file in our source trees, so let's suppress the
   # warning.
+  # Do not complain about the Change-Id: fields, since we use Gerrit.
+  # Upstream does not want those lines (since they do not use Gerrit), but
+  # we always do, so disable the check globally.
   cmd = ['%s/' % hooks_dir] + options + ['-']
   cmd_result = cros_build_lib.RunCommand(cmd=cmd,