implement close method

This commit is contained in:
Sebastian Sdorra
2012-07-15 15:59:01 +02:00
parent 2f464b57d9
commit 276710ca32

View File

@@ -38,10 +38,13 @@ import com.google.common.collect.ImmutableSet;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.transport.CredentialsProvider;
import sonia.scm.repository.GitUtil;
import sonia.scm.repository.client.api.ClientCommand;
//~--- JDK imports ------------------------------------------------------------
import java.io.IOException;
import java.util.Set;
/**
@@ -84,6 +87,20 @@ public class GitRepositoryClientProvider extends RepositoryClientProvider
this.credentialsProvider = credentialsProvider;
}
//~--- methods --------------------------------------------------------------
/**
* Method description
*
*
* @throws IOException
*/
@Override
public void close() throws IOException
{
GitUtil.close(git.getRepository());
}
//~--- get methods ----------------------------------------------------------
/**