mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] Guess Git root a little better.
This commit is contained in:
@@ -510,6 +510,10 @@ public class GitBranchUtil {
|
||||
rootCandidate = root;
|
||||
}
|
||||
}
|
||||
LOG.debug("The best candidate: " + rootCandidate);
|
||||
if (rootCandidate == null) {
|
||||
rootCandidate = gitRoots[0];
|
||||
}
|
||||
LOG.debug("Returning the best candidate: " + rootCandidate);
|
||||
return rootCandidate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user