enhance: show git errors when failed to get the repository root dir of given path (#397)

This commit is contained in:
leo 2024-08-27 15:35:10 +08:00
parent 963916219f
commit b16d267c9b
No known key found for this signature in database
14 changed files with 40 additions and 39 deletions

View file

@ -82,7 +82,7 @@ namespace SourceGit.ViewModels
}
}
public void InitRepository(string path, RepositoryNode parent)
public void InitRepository(string path, RepositoryNode parent, string reason)
{
if (!Preference.Instance.IsGitConfigured())
{
@ -91,7 +91,7 @@ namespace SourceGit.ViewModels
}
if (PopupHost.CanCreatePopup())
PopupHost.ShowPopup(new Init(path, parent));
PopupHost.ShowPopup(new Init(path, parent, reason));
}
public void Clone()