GitVcs.activate() don't show executable validator dialog in tests

This commit is contained in:
Kirill Likhodedov
2011-09-27 18:23:07 +04:00
parent bddea3a847
commit 625b8802c8
+6 -2
View File
@@ -346,8 +346,12 @@ public class GitVcs extends AbstractVcs<CommittedChangeList> {
protected void activate() {
isActivated = true;
myExecutableValidator = new GitExecutableValidator(myProject);
myExecutableValidator.checkExecutableAndShowDialogIfNeeded();
checkVersion();
if (!ApplicationManager.getApplication().isHeadlessEnvironment()) {
myExecutableValidator.checkExecutableAndShowDialogIfNeeded();
checkVersion();
}
if (!myProject.isDefault() && myRootTracker == null) {
myRootTracker = new GitRootTracker(this, myProject, myRootListeners.getMulticaster());
}