mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 10:22:13 +08:00
enhance: show git errors when failed to get the repository root dir of given path (#397)
This commit is contained in:
@@ -10,11 +10,18 @@ namespace SourceGit.ViewModels
|
||||
set => SetProperty(ref _targetPath, value);
|
||||
}
|
||||
|
||||
public Init(string path, RepositoryNode parent)
|
||||
public string Reason
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public Init(string path, RepositoryNode parent, string reason)
|
||||
{
|
||||
_targetPath = path;
|
||||
_parentNode = parent;
|
||||
|
||||
Reason = string.IsNullOrEmpty(reason) ? "Invalid repository detected!" : reason;
|
||||
View = new Views.Init() { DataContext = this };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user