Skip to content

Option to set directory for git situation #156

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bcpow-rmit
Copy link

When running from git submodule it would normally inspect submodule git situation instead of main repo. To enable usage when based in submodule added option to override git directory (by default it takes project directory).

@qoomon qoomon requested a review from Copilot April 7, 2025 06:47
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/main/java/me/qoomon/gradle/gitversioning/GitVersioningPluginExtension.java:99

  • Consider adding a validation check to ensure that the provided gitDir points to an existing directory. This can help avoid potential issues when getGitSituation is called.
if (config.gitDir != null) {

@qoomon
Copy link
Owner

qoomon commented Apr 8, 2025

Thanks for you PR. I think we should add support for project relative paths, because you don't wanna have host specific config values.

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.

2 participants