summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@collab.net>2018-07-06 16:15:50 +0900
committerDavid Pursehouse <dpursehouse@collab.net>2018-07-06 16:15:50 +0900
commit049ea3935debac52a5816ec1c9b5d7ef2916a0a5 (patch)
tree81b89f4277ad7be386c196379e8bcca7e3021ce5
parente0c059c242d905c42bb0e82a5b560162c83b06b5 (diff)
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
-rw-r--r--gerrit-server/src/main/java/com/google/gerrit/server/git/validators/CommitValidators.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/git/validators/CommitValidators.java b/gerrit-server/src/main/java/com/google/gerrit/server/git/validators/CommitValidators.java
index 800cd38622..27220672b7 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/git/validators/CommitValidators.java
+++ b/gerrit-server/src/main/java/com/google/gerrit/server/git/validators/CommitValidators.java
@@ -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.");
}
}