diff options
author | James Moger <james.moger@gitblit.com> | 2014-03-18 17:34:01 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-04-10 18:58:09 -0400 |
commit | 23c416f30f4a1e69e76b70d71f6a9a7da4a020f1 (patch) | |
tree | d8039cb5b0d5956b15f9077318eaea3ae6640d03 /src/main/java/com/gitblit/transport/ssh/git/BaseGitCommand.java | |
parent | 8f6d5356f3cb7f8e800541fe6d46911bd46c0247 (diff) | |
download | gitblit-23c416f30f4a1e69e76b70d71f6a9a7da4a020f1.tar.gz gitblit-23c416f30f4a1e69e76b70d71f6a9a7da4a020f1.zip |
Hook-up comprensive command cleanup (destroy)
Diffstat (limited to 'src/main/java/com/gitblit/transport/ssh/git/BaseGitCommand.java')
-rw-r--r-- | src/main/java/com/gitblit/transport/ssh/git/BaseGitCommand.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/transport/ssh/git/BaseGitCommand.java b/src/main/java/com/gitblit/transport/ssh/git/BaseGitCommand.java index 2e4fda5f..fcb06568 100644 --- a/src/main/java/com/gitblit/transport/ssh/git/BaseGitCommand.java +++ b/src/main/java/com/gitblit/transport/ssh/git/BaseGitCommand.java @@ -44,6 +44,16 @@ abstract class BaseGitCommand extends BaseCommand { protected Repository repo; @Override + public void destroy() { + super.destroy(); + + repositoryResolver = null; + receivePackFactory = null; + uploadPackFactory = null; + repo = null; + } + + @Override public void start(final Environment env) { startThread(new RepositoryCommandRunnable() { @Override |