| | |
| | | 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 |
| | |
| | | } |
| | | repository = repository.substring(1); |
| | | try { |
| | | return repositoryResolver.open(ctx.getClient(), repository); |
| | | return repositoryResolver.open(getContext().getClient(), repository); |
| | | } catch (Exception e) { |
| | | throw new Failure(1, "fatal: '" + repository + "': not a git archive", e); |
| | | } |