CommitValidators: Fix repeated "Change-Id" in error message
If a change is pushed without a Change-Id footer, but with a potential Change-Id line somewhere else in the body of the commit message, the error message says: Hint: A potential Change-IdChange-Id was found, but it was not in the footer (last paragraph) of the commit message. i.e. with repeated "Change-Id" in the first line. Change-Id: I035e20b72b0b48b090a9183310f3460f97755d00
This commit is contained in:
@@ -295,7 +295,7 @@ public class CommitValidators {
|
||||
sb.append('\n');
|
||||
sb.append("Hint: A potential ");
|
||||
sb.append(FooterConstants.CHANGE_ID.getName());
|
||||
sb.append("Change-Id was found, but it was not in the ");
|
||||
sb.append(" was found, but it was not in the ");
|
||||
sb.append("footer (last paragraph) of the commit message.");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user