diff --git a/source/src/main/java/one/nem/lacerta/source/jgit/JGitRepository.java b/source/src/main/java/one/nem/lacerta/source/jgit/JGitRepository.java index f3321abe..09d04f17 100644 --- a/source/src/main/java/one/nem/lacerta/source/jgit/JGitRepository.java +++ b/source/src/main/java/one/nem/lacerta/source/jgit/JGitRepository.java @@ -1,11 +1,13 @@ package one.nem.lacerta.source.jgit; +import org.eclipse.jgit.lib.Repository; + public interface JGitRepository { // リポジトリ取得 - org.eclipse.jgit.lib.Repository getRepository(String id); + Repository getRepository(String id); // リポジトリ作成 - org.eclipse.jgit.lib.Repository createRepository(String id); + Repository createRepository(String id); // リポジトリ削除 void deleteRepository(String id); // リポジトリ存在確認 diff --git a/source/src/main/java/one/nem/lacerta/source/jgit/impl/JGitRepositoryImpl.java b/source/src/main/java/one/nem/lacerta/source/jgit/impl/JGitRepositoryImpl.java index 570c6998..fabcb0bb 100644 --- a/source/src/main/java/one/nem/lacerta/source/jgit/impl/JGitRepositoryImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/jgit/impl/JGitRepositoryImpl.java @@ -6,6 +6,8 @@ import javax.inject.Inject; import one.nem.lacerta.utils.repository.DeviceInfoUtils; +import org.eclipse.jgit.lib.Repository; + import org.eclipse.jgit.lib.RepositoryBuilder; public class JGitRepositoryImpl implements JGitRepository { @@ -18,7 +20,7 @@ public class JGitRepositoryImpl implements JGitRepository { } @Override - public org.eclipse.jgit.lib.Repository getRepository(String id) { + public Repository getRepository(String id) { RepositoryBuilder repositoryBuilder = new RepositoryBuilder(); repositoryBuilder.setGitDir(deviceInfoUtils.getExternalStorageDirectory().resolve(id).resolve(".git").toFile()); repositoryBuilder.setMustExist(true); @@ -30,7 +32,7 @@ public class JGitRepositoryImpl implements JGitRepository { } @Override - public org.eclipse.jgit.lib.Repository createRepository(String id) { + public Repository createRepository(String id) { RepositoryBuilder repositoryBuilder = new RepositoryBuilder(); repositoryBuilder.setGitDir(deviceInfoUtils.getExternalStorageDirectory().resolve(id).resolve(".git").toFile()); repositoryBuilder.setMustExist(false);