In Bonobo Git server 5.2.0.0 I changed the "Repository directory" to something like D:\Git_Repositories
.
But, It will search for repositories only directly under that folder and will not propagate inside it for folders inside it.
For example:
D:\Git_Repositories\PROJECT_A_Repos\Repository_1
D:\Git_Repositories\PROJECT_A_Repos\Repository_2
etc.
Can that be done somehow?
(Without creating a new Bonobo application for each repository directory)
Can that be done somehow ?
Under the current implementation, no:
The Bonobo.Git.Server/Git/IGitRepositoryLocator.cs#IGitRepositoryLocator
is used in Bonobo.Git.Server/Git/GitService/GitServiceExecutor.cs#ExecuteServiceByName()
as so:
args += " \"" + repoLocator.GetRepositoryDirectoryPath(repositoryName).FullName + "\"";
But nothing prevent you to add more intelligence in Bonobo.Git.Server/Git/ConfigurationBasedRepositoryLocator.cs#GetRepositoryDirectoryPath()
, making sure to find a subfolder name repository+".git" instead of blindly combining the name of the repo to a fixed base folder.
The OP Elyahu ended up (in the comments) with:
I just created another Bonobo site that used the other folder as repositories container.
Bonobo basic site is less than 40MB