aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-04-06 17:53:14 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-04-06 17:53:14 +0530
commita96f24ac965ab63d096d22ba52f78e9db8ff0525 (patch)
treecf31234ac9c7c86110a8e53ba52c8f3de0b09b74 /app/src/main
parent3a8371371595caffe792cbb38a6c2483b7861f11 (diff)
fix: use created repository directly
Diffstat (limited to 'app/src/main')
-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