We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a7049a commit c03e76aCopy full SHA for c03e76a
Scripts/CustomEditor/Git.cs
@@ -4,6 +4,7 @@
4
using System;
5
using System.Collections.Generic;
6
using System.Diagnostics;
7
+using System.IO;
8
using System.Threading.Tasks;
9
10
namespace CandyCoded.GitStatus
@@ -18,13 +19,16 @@ public static class Git
18
19
private static string GitPath => "/usr/local/bin/git";
20
#endif
21
22
+ private static string RepoPath => $"{Environment.CurrentDirectory}{Path.DirectorySeparatorChar}";
23
+
24
public static Process GenerateProcess(string path, string arguments)
25
{
26
27
return Process.Start(new ProcessStartInfo
28
29
FileName = path,
30
Arguments = arguments,
31
+ WorkingDirectory = RepoPath,
32
UseShellExecute = false,
33
RedirectStandardOutput = true,
34
RedirectStandardError = true,
0 commit comments