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 9ea4415bd..3fc0873d9 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);