diff options
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java index 1c238f95..eda32b0a 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java @@ -44,6 +44,11 @@ public class PasswordRepository { localDir.delete(); try { + + // create the directory + Repository repository = FileRepositoryBuilder.create(new File(localDir, ".git")); + repository.create(); + Git.init() .setDirectory(localDir) .call(); |