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

if .git directory is missing we get: Unresolved reference: grgit #400

Closed
zoff99 opened this issue Apr 3, 2024 · 3 comments
Closed

if .git directory is missing we get: Unresolved reference: grgit #400

zoff99 opened this issue Apr 3, 2024 · 3 comments

Comments

@zoff99
Copy link

zoff99 commented Apr 3, 2024

if using grgit.branch.current().fullName for example and there is no .git directory then the following error occurs:
Unresolved reference: grgit

i can't catch it with try/catch

@zoff99
Copy link
Author

zoff99 commented Apr 3, 2024

@ajoberstar
Copy link
Owner

I believe you're running into #361, which is a limitation of this Groovy-focused plugin when used in a Kotlin build script. I don't currently have any plan to do anything with this, but you can add watch the other issue in case there are updates or further discussion.

@ajoberstar ajoberstar closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
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

No branches or pull requests

2 participants