kwin opened a new issue, #793: URL: https://github.com/apache/mina-sshd/issues/793
### Version 2.15.1-SNAPSHOT ### Bug description The GitPackCommand opens a repository in https://github.com/apache/mina-sshd/blob/67e2e4c7482eabfa73303f728ec1d702f81847cf/sshd-git/src/main/java/org/apache/sshd/git/pack/GitPackCommand.java#L85 but never closes it accordingly, which leads to dangling file handles and problems when deleting the repository directory on Windows. ### Actual behavior Once you stop the SSH server and try to delete the underlying FS directory you observe the following on Windows: ``` java.io.IOException: File D:\a\maven-scm\maven-scm\maven-scm-providers\maven-scm-providers-git\maven-scm-provider-gitexe\target\scm-test\repository\objects\pack\pack-eef7d0ee953db4f2dd2cdc2c2fb2bcd53123a248.pack unable to be deleted. ``` (e.g. in https://github.com/apache/maven-scm/actions/runs/16597578214/job/46948644603?pr=1270) ### Expected behavior Every repository which is opened should also be closed afterwards. ### Relevant log output ```Shell ``` ### Other information _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org