Пример #1
0
        internal bool IsGitWorkingTree()
        {
            try
            {
                if (!Git.IsGitRepository())
                {
                    return(false);
                }
            }
            catch
            {
                // Ignore failure and continue
            }

            return(Git.GetWorkingTree().Any(line => line.Equals(".git")));
        }
 internal bool IsGitWorkingTree()
 {
     return(Git.GetWorkingTree().Any(line => line.Equals(".git")));
 }