Beispiel #1
0
 public static GitStatusCmd GetGitStatusCmd()
 {
     return(new GitStatusCmd()
     {
         Runner = GitRunner.CreateGitRunner(Configuration.Instance.GitRunnerPath)
     });
 }
Beispiel #2
0
        public static GitRunner CreateGitRunner(string gitPath)
        {
            var gitRunner = new GitRunner()
            {
                GitPath = gitPath
            };

            if (!gitRunner.Runner.isToolAvailable(gitRunner.GitPath))
            {
                throw new GitException("Git application does not exist!");
            }
            return(gitRunner);
        }