소스 검색

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

sujith 1 개월 전
부모
커밋
783fef035a
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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);