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

Commit e05b25a

Browse files
Skipping the search for portable git on non-Windows
1 parent 177e475 commit e05b25a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/GitHub.Api/Git/GitClient.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ public async Task<NPath> FindGitInstallation()
103103
if (!String.IsNullOrEmpty(environment.GitExecutablePath))
104104
return environment.GitExecutablePath;
105105

106-
var path = await LookForPortableGit();
106+
NPath path = null;
107+
108+
if (environment.IsWindows)
109+
path = await LookForPortableGit();
110+
107111
if (path == null)
108112
path = await LookForSystemGit();
109113

0 commit comments

Comments
 (0)