You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The indra-git plugin fails to discover the containing repository if the gradle project does not reside at the repository root. This is not the case for monorepos, git-subtrees, and other repository structures that contain multiple projects.
The upstream JGit documentation recommends using an approach like this:
newRepositoryBuilder()
.setGitDir(gitDirArgument) // --git-dir if supplied, no-op if null
.readEnviroment() // scan environment GIT_* variables
.findGitDir() // scan up the file system tree
.build()
where findGitDir() traverses up the filesystem like the git executable does.
If indra-git performed a filesystem traversal with findGitDir(), it would probably be compatible with monorepo layouts.
The text was updated successfully, but these errors were encountered:
The indra-git plugin fails to discover the containing repository if the gradle project does not reside at the repository root. This is not the case for monorepos, git-subtrees, and other repository structures that contain multiple projects.
From IndraGitService.java:115, it appears that the plugin discovers the repository like this:
The upstream JGit documentation recommends using an approach like this:
where
findGitDir()
traverses up the filesystem like thegit
executable does.If indra-git performed a filesystem traversal with
findGitDir()
, it would probably be compatible with monorepo layouts.The text was updated successfully, but these errors were encountered: