diff options
author | zeapo <mohamed@zenadi.com> | 2017-09-10 15:57:31 +0200 |
---|---|---|
committer | zeapo <mohamed@zenadi.com> | 2017-09-10 15:57:31 +0200 |
commit | 8dc1efe405b9a1172f5470d6c6b88c080f41e406 (patch) | |
tree | 0e73557fff2bd10fcdd1654feae345da9a001fde /app/src/main/java | |
parent | fdfeaa0043c6d76a19a3df407a47225f1d7f96ae (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.java | 2 |
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); |