From 4bf05441533f51fd2bc4e153b8675c52393e21dd Mon Sep 17 00:00:00 2001 From: Jai <814683@qq.com> Date: Tue, 3 Aug 2021 13:21:48 +0800 Subject: [PATCH] fix: wrong path format when opening submodules, causing incorrect folder to be located when opening explorer --- src/Views/Widgets/Dashboard.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Widgets/Dashboard.xaml.cs b/src/Views/Widgets/Dashboard.xaml.cs index d24b0bc7..de0226bc 100644 --- a/src/Views/Widgets/Dashboard.xaml.cs +++ b/src/Views/Widgets/Dashboard.xaml.cs @@ -944,7 +944,7 @@ namespace SourceGit.Views.Widgets { if (hitted == null || hitted != submodule) return; var sub = new Models.Repository(); - sub.Path = Path.Combine(repo.Path, submodule); + sub.Path = Path.GetFullPath(Path.Combine(repo.Path, submodule)); sub.GitDir = new Commands.QueryGitDir(sub.Path).Result(); sub.Name = repo.Name + " : " + Path.GetFileName(submodule);