Skip to content

Conversation

@fkretzer
Copy link

First try to make in compatible with configuration cache in gradle 8.7. Further refactoring needed.
Changes: Detection of .git-dir not possible during configration phase -> Logic of GitDirLocator without usage of jgit?

@fkretzer
Copy link
Author

Sorry for just dropping this without explanation. Had some spare time and played around with it. Just wanted to not loose my thoughts. I wasn't confident if i'm understanding the gradle lifecylcle enough to be able to change it without breaking current behaviour. A major blocker was that gradle doesn't allow the side effects of using jgit in the configuration phase to detect the .git-folder. Maybe it would be ok to use a simpler algorithm to detect the presence of a repo without instanciating via jgit? Maybe just checking the presence of a not empty .git-folder is enough?

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