1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Only set UseShellExecute = false for windows.

This commit is contained in:
MineBill 2025-04-15 12:29:23 +03:00
parent 8c6092504a
commit 7f4fd1e87d
No known key found for this signature in database

View file

@ -95,6 +95,8 @@ class GitManager
if (!File.Exists(gitPath)) if (!File.Exists(gitPath))
gitPath.Clear(); gitPath.Clear();
} }
psi.UseShellExecute = false;
#endif #endif
if (gitPath.IsEmpty) if (gitPath.IsEmpty)
gitPath.Set("git"); gitPath.Set("git");
@ -103,7 +105,6 @@ class GitManager
psi.SetArguments(mArgs); psi.SetArguments(mArgs);
if (mPath != null) if (mPath != null)
psi.SetWorkingDirectory(mPath); psi.SetWorkingDirectory(mPath);
psi.UseShellExecute = false;
psi.RedirectStandardError = true; psi.RedirectStandardError = true;
psi.RedirectStandardOutput = true; psi.RedirectStandardOutput = true;
psi.CreateNoWindow = true; psi.CreateNoWindow = true;