From 8dc1efe405b9a1172f5470d6c6b88c080f41e406 Mon Sep 17 00:00:00 2001 From: zeapo Date: Sun, 10 Sep 2017 15:57:31 +0200 Subject: ensure that the repository is indeed initialized before updating origin --- app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main') 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); -- cgit v1.2.3