IDEA-97728 Git branch does not show in commit info

This commit is contained in:
irengrig
2012-12-20 18:08:20 +04:00
parent 9a1243855c
commit 24e296ac27
2 changed files with 3 additions and 2 deletions
@@ -157,7 +157,8 @@ public class DetailsCache {
@Override
public void run(@NotNull ProgressIndicator indicator) {
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;
try {
branches = new LowLevelAccessImpl(myProject, root).getBranchesWithCommit(abstractHash.getString());
@@ -495,7 +495,7 @@ public class GitLogUI implements Disposable {
if (commitI == null) return;
final VirtualFile root = commitI.selectRepository(myRootsUnderVcs);
final List<String> branches = myDetailsCache.getBranches(root, commitI.getHash());
if (branches != null) {
if (branches != null && ! branches.isEmpty()) {
try {
myBranchesLoader.take(commitI, branches);
}