Community
Participate
Working Groups
In some cases[1] we don't want GitUtils#getGitDir[2] to scan parents of the given path. Currently there is no way to achieve this. Also, GitUtils#getGitDirs[3] which looks for git repositories in children of the given path could benefit from a parameter that would specify how far to recurse. [1] eg in org.eclipse.orion.server.git.servlets.GitCloneHandlerV1.handlePut(HttpServletRequest, HttpServletResponse, String) [2] org.eclipse.orion.server.git.servlets.GitUtils.getGitDir(IPath) [3] org.eclipse.orion.server.git.servlets.GitUtils.getGitDirs(IPath, Map<IPath, File>)
If the new method returned not only File with the repo but also an IPath (under /file) that would be handy for fixing bug 347766.
Fixed with http://git.eclipse.org/c/e4/org.eclipse.orion.server.git/commit/?id=e9b68359bdf5a7baa2cff2d93e479b59ba28bfed.