mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: missing -d ${WORKDIR}
parameter for wt.exe
(#490)
This commit is contained in:
parent
cb2caa0930
commit
5f567460e2
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,11 @@ namespace SourceGit.Native
|
|||
var startInfo = new ProcessStartInfo();
|
||||
startInfo.WorkingDirectory = workdir;
|
||||
startInfo.FileName = OS.ShellOrTerminal;
|
||||
|
||||
// Directly launching `Windows Terminal` need to specify the `-d` parameter
|
||||
if (OS.ShellOrTerminal.EndsWith("wt.exe", StringComparison.OrdinalIgnoreCase))
|
||||
startInfo.Arguments = $"-d \"{workdir}\"";
|
||||
|
||||
Process.Start(startInfo);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue