style<Repository>: normalize repository's path

This commit is contained in:
leo 2024-03-01 13:40:12 +08:00
parent 1c005983c7
commit e3a7abe776
7 changed files with 26 additions and 19 deletions

View file

@ -89,8 +89,8 @@ namespace SourceGit.ViewModels {
CallUIThread(() => {
var repo = Preference.AddRepository(path, Path.Combine(path, ".git"));
var node = new RepositoryNode() {
Id = path,
Name = Path.GetFileName(path),
Id = repo.FullPath,
Name = Path.GetFileName(repo.FullPath),
Bookmark = 0,
IsRepository = true,
};