Beispiel #1
0
        public Repository CreateRepository(string name)
        {
            string     path = Path.Combine(_hostingEnvironment.GetReposBaseFolderPath(), name);
            Repository repo = new Repository(Repository.Init(path, true));

            //_repos.Add(path);
            return(repo);
        }
Beispiel #2
0
 public LibGit2Sharp.Repository GetRepository(string name)
 => new Repository(Path.Combine(_hostingEnvironment.GetReposBaseFolderPath(), name));