fix: use created repository directly

This commit is contained in:
Harsh Shandilya 2023-04-06 17:53:14 +05:30
parent 3a83713715
commit a96f24ac96
No known key found for this signature in database

View file

@ -52,8 +52,7 @@ object PasswordRepository {
fun createRepository(repositoryDir: File) { fun createRepository(repositoryDir: File) {
repositoryDir.delete() repositoryDir.delete()
Git.init().setDirectory(repositoryDir).call() repository = Git.init().setDirectory(repositoryDir).call().repository
initializeRepository(repositoryDir)
} }
// TODO add multiple remotes support for pull/push // TODO add multiple remotes support for pull/push