[git] Guess Git root a little better.

This commit is contained in:
Kirill Likhodedov
2014-10-03 19:18:52 +04:00
parent ae8a0036dc
commit e5f5f440fe
@@ -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;
}