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

Commit 889986f

Browse files
Using FindExecTask for brevity
1 parent 0c4d216 commit 889986f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,9 @@ public override void OnGUI()
117117
newGitExec = gitExec;
118118
CheckEnteredGitPath();
119119

120-
new ProcessTask<NPath>(Manager.CancellationToken, new FirstLineIsPathOutputProcessor())
121-
.Configure(Manager.ProcessManager, Environment.IsWindows ? "where" : "which", "git")
122-
.FinallyInUI((success, ex, path) =>
123-
{
120+
new FindExecTask("git", Manager.CancellationToken)
121+
.Configure(Manager.ProcessManager)
122+
.FinallyInUI((success, ex, path) => {
124123
if (success)
125124
{
126125
Logger.Trace("FindGit Path:{0}", path);

0 commit comments

Comments
 (0)