From 84f43536d5474f2077cf3b9a07b13b21ad853c3b Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Tue, 15 Apr 2014 09:27:43 -0400 Subject: [PATCH] Removed obsolete Gravatar profile code --- src/main/java/com/gitblit/transport/ssh/git/BaseGitCommand.java | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 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 2e4fda5..029dd73 100644 --- a/src/main/java/com/gitblit/transport/ssh/git/BaseGitCommand.java +++ b/src/main/java/com/gitblit/transport/ssh/git/BaseGitCommand.java @@ -1,4 +1,5 @@ /* + * Copyright (C) 2009 The Android Open Source Project * Copyright 2014 gitblit.com. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -29,10 +30,6 @@ import com.gitblit.transport.ssh.SshDaemonClient; import com.gitblit.transport.ssh.commands.BaseCommand; -/** - * @author Eric Myhre - * - */ abstract class BaseGitCommand extends BaseCommand { @Argument(index = 0, metaVar = "REPOSITORY", required = true, usage = "repository name") protected String repository; @@ -44,6 +41,16 @@ 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 -- Gitblit v1.9.1