Merge "Merge branch 'stable-3.2'"

This commit is contained in:
Marco Miller
2020-09-22 13:11:08 +00:00
committed by Gerrit Code Review
2 changed files with 39 additions and 9 deletions

View File

@@ -3297,6 +3297,9 @@ class ReceiveCommits {
// refs pointing to this commit.
for (Ref ref :
receivePackRefCache.tipsFromObjectId(c.copy(), RefNames.REFS_CHANGES)) {
if (!PatchSet.isChangeRef(ref.getName())) {
continue;
}
PatchSet.Id psId = PatchSet.Id.fromRef(ref.getName());
Optional<ChangeNotes> notes = getChangeNotes(psId.changeId());
if (notes.isPresent() && notes.get().getChange().getDest().equals(branch)) {