[git] reduce logging noise

This is actually a valid situation to request GitRepositoryManager#getRepositoryForFile for non-Git files. Can be used, for instance, in #update() of Git-only actions to check if the action should be visible at all (when it is under Svn, for instance).
This commit is contained in:
Kirill Likhodedov
2013-01-25 12:14:17 +04:00
parent b3f3a96c1e
commit 32e7753a38
@@ -115,9 +115,7 @@ public class GitRepositoryManagerImpl extends AbstractProjectComponent implement
final AbstractVcs vcs = vcsRoot.getVcs();
if (!myVcs.equals(vcs)) {
if (vcs != null) {
// if null, the file is just not under version control, nothing interesting;
// otherwise log, because Git method is requested not for a Git-controlled file
LOG.info(String.format("getRepositoryForFile returned non-Git (%s) root for file %s", vcs.getDisplayName(), filePath));
LOG.debug(String.format("getRepositoryForFile returned non-Git (%s) root for file %s", vcs.getDisplayName(), filePath));
}
return null;
}