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

Warn message when calling .close() #305

Closed
stefanleh opened this issue Nov 13, 2019 · 4 comments
Closed

Warn message when calling .close() #305

stefanleh opened this issue Nov 13, 2019 · 4 comments

Comments

@stefanleh
Copy link

stefanleh commented Nov 13, 2019

When i use grgit in the following way i get a warn message:

grgit.clone(dir: repo, uri: repoUrl, credentials: creds, refToCheckout: branch).withCloseable { 
    configGit -> 
            println "Konfigurationsrepository ${configurationRepositoryUrl} wurde nach ${repoPath} geklont."
}

Message:

close() called when useCnt is already zero for Repository[......./.git]

I expected: no warning as im using the AutoClosable functionality

@ajoberstar
Copy link
Owner

Which version of grgit are you using?

@stefanleh
Copy link
Author

stefanleh commented Nov 15, 2019

We use 4.0.0-rc.1 of the gradle plugin.
Just saw that 4.0.0 is released.
Will retest with 4.0.0.

@stefanleh
Copy link
Author

No change with 4.0.0.
I still get the warning.

@stefanleh
Copy link
Author

Thanks.

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