mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] more diagnostic for EA-62663
This commit is contained in:
committed by
Julia Beliaeva
parent
9f2b0f3a33
commit
8f232a9173
@@ -840,7 +840,9 @@ public class GitHistoryUtils {
|
||||
Collection<VcsRef> refsInRecord = parseRefs(record.getRefs(), commit.getId(), factory, root);
|
||||
for (VcsRef ref : refsInRecord) {
|
||||
if (!refs.add(ref)) {
|
||||
LOG.error("Adding duplicate element to the set");
|
||||
// relying on the fact that intersection method puts elements of the first argument into the result
|
||||
VcsRef otherRef = ContainerUtil.getFirstItem(ContainerUtil.intersection(refs, Collections.singleton(ref)));
|
||||
LOG.error("Adding duplicate element " + ref + " to the set containing " + otherRef);
|
||||
}
|
||||
}
|
||||
return commit;
|
||||
|
||||
Reference in New Issue
Block a user