aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/app/passwordstore/data/repo/PasswordRepository.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/app/passwordstore/data/repo/PasswordRepository.kt b/app/src/main/java/app/passwordstore/data/repo/PasswordRepository.kt
index 2144cf1e..a4b3f316 100644
--- a/app/src/main/java/app/passwordstore/data/repo/PasswordRepository.kt
+++ b/app/src/main/java/app/passwordstore/data/repo/PasswordRepository.kt
@@ -52,8 +52,7 @@ object PasswordRepository {
fun createRepository(repositoryDir: File) {
repositoryDir.delete()
- Git.init().setDirectory(repositoryDir).call()
- initializeRepository(repositoryDir)
+ repository = Git.init().setDirectory(repositoryDir).call().repository
}
// TODO add multiple remotes support for pull/push