fix<Dashboard>: wrong path format when opening submodules, causing incorrect folder to be located when opening explorer

This commit is contained in:
Jai 2021-08-03 13:21:48 +08:00
parent eb5fa48199
commit 4bf0544153

View file

@ -944,7 +944,7 @@ namespace SourceGit.Views.Widgets {
if (hitted == null || hitted != submodule) return; if (hitted == null || hitted != submodule) return;
var sub = new Models.Repository(); 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.GitDir = new Commands.QueryGitDir(sub.Path).Result();
sub.Name = repo.Name + " : " + Path.GetFileName(submodule); sub.Name = repo.Name + " : " + Path.GetFileName(submodule);