mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-97728 Git branch does not show in commit info
This commit is contained in:
@@ -157,7 +157,8 @@ public class DetailsCache {
|
|||||||
@Override
|
@Override
|
||||||
public void run(@NotNull ProgressIndicator indicator) {
|
public void run(@NotNull ProgressIndicator indicator) {
|
||||||
if (!recheck.process(abstractHash)) return;
|
if (!recheck.process(abstractHash)) return;
|
||||||
if (getBranches(root, abstractHash) != null) return;
|
List<String> branches1 = getBranches(root, abstractHash);
|
||||||
|
if (branches1 != null && ! branches1.isEmpty()) return;
|
||||||
List<String> branches;
|
List<String> branches;
|
||||||
try {
|
try {
|
||||||
branches = new LowLevelAccessImpl(myProject, root).getBranchesWithCommit(abstractHash.getString());
|
branches = new LowLevelAccessImpl(myProject, root).getBranchesWithCommit(abstractHash.getString());
|
||||||
|
|||||||
@@ -495,7 +495,7 @@ public class GitLogUI implements Disposable {
|
|||||||
if (commitI == null) return;
|
if (commitI == null) return;
|
||||||
final VirtualFile root = commitI.selectRepository(myRootsUnderVcs);
|
final VirtualFile root = commitI.selectRepository(myRootsUnderVcs);
|
||||||
final List<String> branches = myDetailsCache.getBranches(root, commitI.getHash());
|
final List<String> branches = myDetailsCache.getBranches(root, commitI.getHash());
|
||||||
if (branches != null) {
|
if (branches != null && ! branches.isEmpty()) {
|
||||||
try {
|
try {
|
||||||
myBranchesLoader.take(commitI, branches);
|
myBranchesLoader.take(commitI, branches);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user