mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
feature<App>: supports to open repository from commandline directly
This commit is contained in:
parent
91f3f1263a
commit
5f2fe64e80
3 changed files with 16 additions and 3 deletions
|
@ -212,6 +212,8 @@ namespace SourceGit.Git {
|
|||
/// <param name="path">Local path.</param>
|
||||
/// <returns></returns>
|
||||
public static bool IsValid(string path) {
|
||||
if (!Directory.Exists(path)) return false;
|
||||
|
||||
var startInfo = new ProcessStartInfo();
|
||||
startInfo.FileName = App.Setting.Tools.GitExecutable;
|
||||
startInfo.Arguments = "rev-parse --git-dir";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue