Merge pull request !14 from Jai/fix/submodule-path

打开子模块时的路径分隔符不正确
This commit is contained in:
leo 2021-08-03 05:39:12 +00:00 committed by Gitee
commit 6844e2d9ba

View file

@ -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);