mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-04-18 17:40:22 +02:00
ensure that the repository is indeed initialized before updating origin
This commit is contained in:
parent
fdfeaa0043
commit
8dc1efe405
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue