diff --git a/data/src/main/java/one/nem/lacerta/data/utils/UtilsRepo.java b/data/src/main/java/one/nem/lacerta/data/utils/UtilsRepo.java index 1b148261..f64108e2 100644 --- a/data/src/main/java/one/nem/lacerta/data/utils/UtilsRepo.java +++ b/data/src/main/java/one/nem/lacerta/data/utils/UtilsRepo.java @@ -7,4 +7,6 @@ public interface UtilsRepo { Path getExternalFilesDirPath(String type); Path getExternalFilesDirPath(); + + } diff --git a/data/src/main/java/one/nem/lacerta/source/jgit/RepoUtils.java b/data/src/main/java/one/nem/lacerta/source/jgit/RepoUtils.java new file mode 100644 index 00000000..e7d4ea9e --- /dev/null +++ b/data/src/main/java/one/nem/lacerta/source/jgit/RepoUtils.java @@ -0,0 +1,12 @@ +package one.nem.lacerta.source.jgit; + +import org.eclipse.jgit.lib.Repository; + +public class RepoUtils { + // Internal Utils + public static String getRepoName(Repository repo) { + return repo.getDirectory().getParentFile().getName(); + } + + +} diff --git a/data/src/main/java/one/nem/lacerta/source/repo/placeholder b/data/src/main/java/one/nem/lacerta/source/jgit/placeholder similarity index 100% rename from data/src/main/java/one/nem/lacerta/source/repo/placeholder rename to data/src/main/java/one/nem/lacerta/source/jgit/placeholder diff --git a/data/src/main/java/one/nem/lacerta/source/repo/RepoUtils.java b/data/src/main/java/one/nem/lacerta/source/repo/RepoUtils.java deleted file mode 100644 index a8b0be02..00000000 --- a/data/src/main/java/one/nem/lacerta/source/repo/RepoUtils.java +++ /dev/null @@ -1,5 +0,0 @@ -package one.nem.lacerta.source.repo; - -public class RepoUtils { - // Internal Utils -}