]> source.dussan.org Git - jgit.git/commit
Accept Change-Id even if footer contains not well-formed entries 81/10381/6
authorStefan Lay <stefan.lay@sap.com>
Fri, 15 Feb 2013 11:34:44 +0000 (12:34 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 20 Feb 2013 22:49:43 +0000 (23:49 +0100)
commit3b41fcbd96610dc0fddded2aebc4e3b5c702b4fb
treeba35aa7ee88f9872737decbb8796c47cf1fb4919
parent9a5f4b46ccac22dd3dec8205ab50ec84f495db2f
Accept Change-Id even if footer contains not well-formed entries

Instead of only looking for a Change-Id in the last section if it
consists only of well-formed "key: value" lines replace the last
occurrence of a valid Change-Id line in the last section. Some tools
require footer lines e.g. without a colon.

Gerrit doesn't accept Change-Id lines in the footer if the Change-Id
line doesn't start at the beginning of the line.

Bug: 400818
Change-Id: Icce54872adc8c566994beea848448a2f7ca87085
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/ChangeIdUtilTest.java
org.eclipse.jgit/src/org/eclipse/jgit/util/ChangeIdUtil.java