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

Commit 5b5ca25

Browse files
committed
Fix breakage in process running
1 parent 0cf9c5c commit 5b5ca25

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/GitHub.Api/Authentication/LoginManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ string password
261261

262262
ApplicationAuthorization auth = null;
263263
var loginTask = new SimpleListProcessTask(taskManager.Token, loginTool, $"login --host={host}");
264-
loginTask.Configure(processManager, true);
264+
loginTask.Configure(processManager, workingDirectory: loginTool.Parent, withInput: true);
265265
loginTask.OnStartProcess += proc =>
266266
{
267267
proc.StandardInput.WriteLine(username);

src/GitHub.Api/OutputProcessors/ProcessManager.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ 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;
4644
gitEnvironment.Configure(startInfo, workingDirectory ?? environment.RepositoryPath);
4745

4846
if (executable.IsRelative)

0 commit comments

Comments
 (0)