Closed jonatan-ivanov closed 10 months ago
Since https://github.com/nebula-plugins/nebula-release-plugin/pull/243 removed jgit/grgit and the plugin uses the git executable now, this works out of the box since unlike jgit, the git cli can handle git worktrees.
This is available starting from 18.0.0
.
Thank you @rpalcolea!
The info plugin can work in case of a worktree is used. Can we make this plugin work even if it is checked out into a worktree? Setting the
git.root
property is an ok workaround but can we make this work out of the box? For example:git.root
if presentgit rev-parse --path-format=absolute --git-common-dir
if presentproject.rootProject.projectDir
if nothing else presentHere: https://github.com/nebula-plugins/nebula-release-plugin/blob/bdea694a10d7256ecb6fd6f01ded66905801c192/src/main/groovy/nebula/plugin/release/ReleasePlugin.groovy#L78