diff options
author | knuthy <knuthy@gmail.com> | 2014-09-06 18:04:11 +0200 |
---|---|---|
committer | knuthy <knuthy@gmail.com> | 2014-09-06 18:04:11 +0200 |
commit | 7972154bd1df71e00a0f1c761e458798076b16ef (patch) | |
tree | de3ca4395ae77c73c96aaf2d90f15c08dee3d17f /app/src/main | |
parent | 51b333400030dd56c35efeeda86817d2584982f5 (diff) |
corrected a potentially major bug
Diffstat (limited to 'app/src/main')
-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(); |