Skip to content

Commit

Permalink
[JENKINS-19994] Close files opened by JGit operations
Browse files Browse the repository at this point in the history
The JGit Repository object opens files and requires that the close()
method on the repository object is called to close the files.

The JGit RevWalk object documentation states that the dispose()
method should be called on the RevWalk object to unlock any resources
it is holding.

The JGit ObjectReader documentation status that its resources should
be released by calling the release() method.

This change is not enough to allow workspace cleanup in all cases, since
there are other cases (outside the JGit implementation) which will cause
files to be kept open in the workspace.  Refer to JENKINS-20585 for one
example.
  • Loading branch information
MarkEWaite committed Jan 4, 2014
1 parent 7fd8d16 commit 25af385
Showing 1 changed file with 344 additions and 116 deletions.

0 comments on commit 25af385

Please sign in to comment.