mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
enhance: show git errors when failed to get the repository root dir of given path (#397)
This commit is contained in:
parent
963916219f
commit
b16d267c9b
14 changed files with 40 additions and 39 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue