| | |
| | | /* |
| | | * Copyright (C) 2009 The Android Open Source Project |
| | | * Copyright 2014 gitblit.com. |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | |
| | | 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; |
| | |
| | | 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 |