Skip to content

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