This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 124428 [details] NetBeans git bug NetBeans will hold a file descriptor even after a git project s closed. This is especially annoying on Win platform where after that I cannot move or remove such directory. To reproduce on Win OS, just open a git based project (in my case Maven java se) in NetBeans and close it. Then try to remove it. Not sure if this is important, but in my case the project was unloadable (because of missing Maven plugins). NetBeans 7.2 & Dev 201209160001
Right, jgit keeps some files open for certain repositories (those having objects packed in .pack files). Closing a project does not help because NetBeans still remembers the git repository - versioned folders are project-independent and closing/opening a project has no impact on versioning subsystem. You can see that the repository is kept in Git -> Repositories window. We should find a way to "disconnect" from the local repository and release occupied resources and mainly identify the point when they're not needed any more.
*** Bug 212502 has been marked as a duplicate of this bug. ***
fix: http://hg.netbeans.org/core-main/rev/0c736b217280
with the fix all open and locked files should be closed and released after about 10secs after every git action or command finishes
Integrated into 'main-golden', will be available in build *201211170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/0c736b217280 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #218443 - NetBeans does not close file descriptor after closing a Maven based git project releasing client when it's not needed any more