From 4a676e094d127806527d63d40559d5d757976cab Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 13 Sep 2021 13:38:21 +0800 Subject: [PATCH] optimize: fix wt.exe not startup in given working directory --- src/Resources/Locales/en_US.xaml | 2 +- src/Views/Widgets/Dashboard.xaml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/Locales/en_US.xaml b/src/Resources/Locales/en_US.xaml index a9c38d00..2adc8524 100644 --- a/src/Resources/Locales/en_US.xaml +++ b/src/Resources/Locales/en_US.xaml @@ -363,7 +363,7 @@ Fetch remotes automatically (need restart) Restore windows Enable crash report (maybe include related path) - Use Windows Terminal to open Git terminal + Use Windows Terminal instead of cmd.exe GIT SETTING Install Path Input path for git.exe diff --git a/src/Views/Widgets/Dashboard.xaml.cs b/src/Views/Widgets/Dashboard.xaml.cs index 3a6b7c22..f067cff1 100644 --- a/src/Views/Widgets/Dashboard.xaml.cs +++ b/src/Views/Widgets/Dashboard.xaml.cs @@ -320,7 +320,7 @@ namespace SourceGit.Views.Widgets { Process.Start(new ProcessStartInfo { WorkingDirectory = repo.Path, FileName = "wt", - Arguments = bash, + Arguments = $"-d \"{repo.Path}\" \"{bash}\"", UseShellExecute = false, }); } else {