diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-02-14 10:30:12 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2018-02-15 16:59:42 +0900 |
commit | 9bebb1eae78401e1d3289dc3d84006c10d10c0ef (patch) | |
tree | c2d0e00dea67353c4c65dedf9ef841a8a5e4e077 /org.eclipse.jgit.lfs/resources | |
parent | 282dc592da152a224f58df6b21fd5f594a8778fb (diff) | |
download | jgit-9bebb1eae78401e1d3289dc3d84006c10d10c0ef.tar.gz jgit-9bebb1eae78401e1d3289dc3d84006c10d10c0ef.zip |
RepoCommand: Don't leave Git open
When the command is run on a non-bare repository, an instance of
Git is created to execute the commit, and is left open when the
command has finished.
Refactor to not use a class scope Git instance, and make sure it
gets closed before returning.
Change-Id: Ic623ae0fd8b9e264b5dfd434da0de6bb4f910984
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.lfs/resources')
0 files changed, 0 insertions, 0 deletions