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); }
public LibGit2Sharp.Repository GetRepository(string name) => new Repository(Path.Combine(_hostingEnvironment.GetReposBaseFolderPath(), name));