File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 4
4
using System ;
5
5
using System . Collections . Generic ;
6
6
using System . Diagnostics ;
7
+ using System . IO ;
7
8
using System . Threading . Tasks ;
8
9
9
10
namespace CandyCoded . GitStatus
@@ -18,13 +19,16 @@ public static class Git
18
19
private static string GitPath => "/usr/local/bin/git" ;
19
20
#endif
20
21
22
+ private static string RepoPath => $ "{ Environment . CurrentDirectory } { Path . DirectorySeparatorChar } ";
23
+
21
24
public static Process GenerateProcess ( string path , string arguments )
22
25
{
23
26
24
27
return Process . Start ( new ProcessStartInfo
25
28
{
26
29
FileName = path ,
27
30
Arguments = arguments ,
31
+ WorkingDirectory = RepoPath ,
28
32
UseShellExecute = false ,
29
33
RedirectStandardOutput = true ,
30
34
RedirectStandardError = true ,
You can’t perform that action at this time.
0 commit comments