Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit e3b86a7

Browse files
committed
Fix path to executable
1 parent 66eb21e commit e3b86a7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/GitHub.Api/NewTaskSystem/ProcessTask.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ public void Run()
8484
{
8585
Process.ErrorDataReceived += (s, e) =>
8686
{
87-
//if (e.Data != null)
88-
//{
89-
// Logger.Trace("ErrorData \"" + (e.Data == null ? "'null'" : e.Data) + "\"");
90-
//}
87+
//if (e.Data != null)
88+
//{
89+
// Logger.Trace("ErrorData \"" + (e.Data == null ? "'null'" : e.Data) + "\"");
90+
//}
9191

9292
string encodedData = null;
9393
if (e.Data != null)
@@ -503,6 +503,6 @@ public SimpleListProcessTask(CancellationToken token, string arguments, IOutputP
503503
this.arguments = arguments;
504504
}
505505

506-
public override string ProcessName => fullPathToExecutable?.FileName;
506+
public override string ProcessName => fullPathToExecutable;
507507
public override string ProcessArguments => arguments;
508508
}}

src/GitHub.Api/OutputProcessors/ProcessManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public T Configure<T>(T processTask, NPath executable = null, string arguments =
4141
StandardErrorEncoding = Encoding.UTF8
4242
};
4343

44+
if (!executable.IsRelative)
45+
workingDirectory = executable.Parent;
4446
gitEnvironment.Configure(startInfo, workingDirectory ?? environment.RepositoryPath);
4547

4648
if (executable.IsRelative)

0 commit comments

Comments
 (0)