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

Commit 643bb80

Browse files
Checking the entered path in a few more spots
1 parent ee55159 commit 643bb80

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@ public override void OnGUI()
8484
if (!string.IsNullOrEmpty(newValue))
8585
{
8686
newGitExec = newValue;
87-
88-
if(Environment.IsWindows)
87+
88+
if (Environment.IsWindows)
8989
{
9090
//Normalizing the path separator in windows
9191
newGitExec = newGitExec.ToNPath().ToString();
9292
}
93+
94+
CheckEnteredGitPath();
9395
}
9496
}
9597
}
@@ -193,6 +195,8 @@ private void MaybeUpdateData()
193195
{
194196
newGitExec = gitExec = Environment.GitExecutablePath.ToString();
195197
gitExecParent = Environment.GitExecutablePath.Parent.ToString();
198+
199+
CheckEnteredGitPath();
196200
}
197201

198202
if (gitExecParent == null)

0 commit comments

Comments
 (0)