Skip to content

Commit f5429a8

Browse files
committed
Added non async process method.
1 parent 4590a30 commit f5429a8

File tree

1 file changed

+8
-1
lines changed
  • Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor

1 file changed

+8
-1
lines changed

Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor/Git.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static class Git
1818
public static string GitPath => "/usr/local/bin/git";
1919
#endif
2020

21-
private static Task<Process> GenerateProcessAsync(string path, string arguments)
21+
private static Task<Process> GenerateProcess(string path, string arguments)
2222
{
2323

2424
return Task.Run(() => Process.Start(new ProcessStartInfo
@@ -33,6 +33,13 @@ private static Task<Process> GenerateProcessAsync(string path, string arguments)
3333

3434
}
3535

36+
private static Task<Process> GenerateProcessAsync(string path, string arguments)
37+
{
38+
39+
return Task.Run(() => GenerateProcess(path, arguments));
40+
41+
}
42+
3643
public static async Task<string> Branch()
3744
{
3845

0 commit comments

Comments
 (0)