aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorknuthy <knuthy@gmail.com>2014-09-06 18:04:11 +0200
committerknuthy <knuthy@gmail.com>2014-09-06 18:04:11 +0200
commit7972154bd1df71e00a0f1c761e458798076b16ef (patch)
treede3ca4395ae77c73c96aaf2d90f15c08dee3d17f /app/src
parent51b333400030dd56c35efeeda86817d2584982f5 (diff)
corrected a potentially major bug
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/utils/PasswordRepository.java5
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();