Browse Source

Sujith :) ->
1. Modified commit and push method to use the static helper

sujith 1 month atrás
parent
commit
783fef035a
1 changed files with 1 additions and 4 deletions
  1. 1 4
      Assets/Arbitrator/Editor/Services/GitExecutors.cs

+ 1 - 4
Assets/Arbitrator/Editor/Services/GitExecutors.cs

@@ -437,10 +437,7 @@ namespace Terra.Arbitrator.Services
                     return;
                 }
                 
-                await Cli.Wrap(GitCommand.FindVsCodeExecutable())
-                    .WithArguments(args => args.Add("--wait").Add(change.FilePath))
-                    .WithWorkingDirectory(ProjectRoot)
-                    .ExecuteAsync();
+                await GitCommand.RunAsync(new StringBuilder(), new[] { GitCommand.FindVsCodeExecutable(), "--wait", change.FilePath }, 0, 141);
                 
                 var fullPath = Path.Combine(ProjectRoot, change.FilePath);
                 var fileContent = await File.ReadAllTextAsync(fullPath);