diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-04-06 17:53:14 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-04-06 17:53:14 +0530 |
commit | a96f24ac965ab63d096d22ba52f78e9db8ff0525 (patch) | |
tree | cf31234ac9c7c86110a8e53ba52c8f3de0b09b74 /app/src | |
parent | 3a8371371595caffe792cbb38a6c2483b7861f11 (diff) |
fix: use created repository directly
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/app/passwordstore/data/repo/PasswordRepository.kt | 3 |
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 |