Paul Martin
2016-04-27 c2188a840bc4153ae92112b04b2e06a90d3944aa
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;
@@ -89,10 +86,9 @@
      repository = repository.replace('\\', '/');
      // ssh://git@thishost/path should always be name="/path" here
      //
      if (!repository.startsWith("/")) {
         throw new Failure(1, "fatal: '" + repository + "': not starts with / character");
      if (repository.startsWith("/")) {
         repository = repository.substring(1);
      }
      repository = repository.substring(1);
      try {
         return repositoryResolver.open(getContext().getClient(), repository);
      } catch (Exception e) {