diff --git a/WORKSPACE b/WORKSPACE index 7529d8abda..e370f6933d 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -748,7 +748,7 @@ maven_jar( sha1 = "f7be08ec23c21485b9b5a1cf1654c2ec8c58168d", ) -GITILES_VERS = "0.3-6" +GITILES_VERS = "0.3-7" GITILES_REPO = GERRIT @@ -757,14 +757,14 @@ maven_jar( artifact = "com.google.gitiles:blame-cache:" + GITILES_VERS, attach_source = False, repository = GITILES_REPO, - sha1 = "bd1ec86570b8a6e4b68c5af6311c8cd10aa3f295", + sha1 = "af6212a62363906c63d367f8276ae1645f83bf93", ) maven_jar( name = "gitiles-servlet", artifact = "com.google.gitiles:gitiles-servlet:" + GITILES_VERS, repository = GITILES_REPO, - sha1 = "98bf06ca9abc871beb3d6c01e6f053243d4e911a", + sha1 = "6a53f722f8572a2f1bcb7d86e5692168844bab76", ) # prettify must match the version used in Gitiles diff --git a/java/com/google/gerrit/server/mail/send/ChangeEmail.java b/java/com/google/gerrit/server/mail/send/ChangeEmail.java index 36b3c205e0..d7f09d2884 100644 --- a/java/com/google/gerrit/server/mail/send/ChangeEmail.java +++ b/java/com/google/gerrit/server/mail/send/ChangeEmail.java @@ -180,6 +180,7 @@ public abstract class ChangeEmail extends NotificationEmail { setChangeSubjectHeader(); setHeader(MailHeader.CHANGE_ID.fieldName(), "" + change.getKey().get()); setHeader(MailHeader.CHANGE_NUMBER.fieldName(), "" + change.getChangeId()); + setHeader(MailHeader.PROJECT.fieldName(), "" + change.getProject()); setChangeUrlHeader(); setCommitIdHeader(); diff --git a/java/com/google/gerrit/server/mail/send/NotificationEmail.java b/java/com/google/gerrit/server/mail/send/NotificationEmail.java index f928bf0580..0fb5c6f9d6 100644 --- a/java/com/google/gerrit/server/mail/send/NotificationEmail.java +++ b/java/com/google/gerrit/server/mail/send/NotificationEmail.java @@ -122,7 +122,7 @@ public abstract class NotificationEmail extends OutgoingEmail { soyContext.put("branch", branchData); footers.add(MailHeader.PROJECT.withDelimiter() + branch.project().get()); - footers.add("Gerrit-Branch: " + branch.shortName()); + footers.add(MailHeader.BRANCH.withDelimiter() + branch.shortName()); } @VisibleForTesting diff --git a/java/com/google/gerrit/server/mail/send/OutgoingEmail.java b/java/com/google/gerrit/server/mail/send/OutgoingEmail.java index 7d2fa0af2e..e81f7f404a 100644 --- a/java/com/google/gerrit/server/mail/send/OutgoingEmail.java +++ b/java/com/google/gerrit/server/mail/send/OutgoingEmail.java @@ -211,12 +211,12 @@ public abstract class OutgoingEmail { } } - Set
intersection = Sets.intersection(smtpRcptTo, smtpRcptToPlaintextOnly); + Set intersection = Sets.intersection(va.smtpRcptTo, smtpRcptToPlaintextOnly); if (!intersection.isEmpty()) { logger.atSevere().log("Email '%s' will be sent twice to %s", messageClass, intersection); } - if (!smtpRcptTo.isEmpty()) { + if (!va.smtpRcptTo.isEmpty()) { // Send multipart message logger.atFine().log( "Sending multipart '%s' from %s to %s", diff --git a/javatests/com/google/gerrit/acceptance/server/change/CommentsIT.java b/javatests/com/google/gerrit/acceptance/server/change/CommentsIT.java index 65f8aa0bc3..ba41d7e2e5 100644 --- a/javatests/com/google/gerrit/acceptance/server/change/CommentsIT.java +++ b/javatests/com/google/gerrit/acceptance/server/change/CommentsIT.java @@ -319,8 +319,6 @@ public class CommentsIT extends AbstractDaemonTest { @Test public void postCommentsUnreachableData() throws Exception { - requestScopeOperations.setApiUser(admin.id()); - String file = "file"; PushOneCommit push = pushFactory.create(admin.newIdent(), testRepo, "first subject", file, "l1\nl2\n"); diff --git a/polygerrit-ui/app/elements/settings/gr-cla-view/gr-cla-view.html b/polygerrit-ui/app/elements/settings/gr-cla-view/gr-cla-view.html index fb5ab1580f..fb5d64f89b 100644 --- a/polygerrit-ui/app/elements/settings/gr-cla-view/gr-cla-view.html +++ b/polygerrit-ui/app/elements/settings/gr-cla-view/gr-cla-view.html @@ -80,10 +80,10 @@ limitations under the License. data-name$="[[item.name]]" data-url$="[[item.url]]" on-click="_handleShowAgreement" - disabled$="[[_disableAggreements(item, _groups, _signedAgreements)]]"> + disabled$="[[_disableAgreements(item, _groups, _signedAgreements)]]"> -