summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2017-09-10 15:57:31 +0200
committerzeapo <mohamed@zenadi.com>2017-09-10 15:57:31 +0200
commit8dc1efe405b9a1172f5470d6c6b88c080f41e406 (patch)
tree0e73557fff2bd10fcdd1654feae345da9a001fde /app/src/main/java
parentfdfeaa0043c6d76a19a3df407a47225f1d7f96ae (diff)
ensure that the repository is indeed initialized before updating origin
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
index 9ea4415b..3fc0873d 100644
--- a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
+++ b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
@@ -444,7 +444,7 @@ public class GitActivity extends AppCompatActivity {
return false;
}
}
- if (PasswordRepository.isInitialized()) {
+ if (PasswordRepository.isInitialized() && settings.getBoolean("repository_initialized", false)) {
// don't just use the clone_uri text, need to use hostname which has
// had the proper protocol prepended
PasswordRepository.addRemote("origin", hostname, true);