From a96f24ac965ab63d096d22ba52f78e9db8ff0525 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 6 Apr 2023 17:53:14 +0530 Subject: fix: use created repository directly --- app/src/main/java/app/passwordstore/data/repo/PasswordRepository.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/src/main/java') 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 -- cgit v1.2.3