Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit d3f0f8e

Browse files
Compilation fixes
1 parent 043bdff commit d3f0f8e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/GitPathView.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,17 @@ public override void OnGUI()
6464
isBusy = true;
6565

6666
var validateGitInstall = !string.IsNullOrEmpty(newValue);
67-
68-
if (validateGitInstall && !GitClient.ValidateGitInstall(newValue.ToNPath()))
67+
if (validateGitInstall)
6968
{
70-
EditorUtility.DisplayDialog(GitInstallPickInvalidTitle,
71-
String.Format(GitInstallPickInvalidMessage, newValue),
72-
GitInstallPickInvalidOK);
69+
var nPath = newValue.ToNPath();
70+
if (!nPath.FileExists())
71+
{
72+
EditorUtility.DisplayDialog(GitInstallPickInvalidTitle,
73+
String.Format(GitInstallPickInvalidMessage, newValue),
74+
GitInstallPickInvalidOK);
7375

74-
validateGitInstall = false;
76+
validateGitInstall = false;
77+
}
7578
}
7679

7780
if (validateGitInstall)

0 commit comments

Comments
 (0)