Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix git.root failing git repo detection: Set rootDir as working dir for git execs #252

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

barooi
Copy link

@barooi barooi commented Dec 11, 2023

Setting the Gradle git.root property as per the docs (https://github.com/nebula-plugins/nebula-release-plugin#git-root-is-in-a-different-location-from-gradle-root) fails since major release 18+.

The command "rev-parse --is-inside-work-tree" returns false and makes the plugin fail to detect the git repo.

Some debugging on my part revealed the culprit being the git command working directory still being the Gradle Root causes this behavior. Setting the working directory for the git exec command to the provided git.root directory solves the failing detection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant