feature<App>: supports to open repository from commandline directly

This commit is contained in:
leo 2021-02-01 09:39:14 +08:00
parent 91f3f1263a
commit 5f2fe64e80
3 changed files with 16 additions and 3 deletions

View file

@ -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";