From 7972154bd1df71e00a0f1c761e458798076b16ef Mon Sep 17 00:00:00 2001 From: knuthy Date: Sat, 6 Sep 2014 18:04:11 +0200 Subject: corrected a potentially major bug --- app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- cgit v1.2.3