mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-01 06:45:19 +00:00
ensure that the repository is indeed initialized before updating origin
This commit is contained in:
@@ -444,7 +444,7 @@ public class GitActivity extends AppCompatActivity {
|
|||||||
return false;
|
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
|
// don't just use the clone_uri text, need to use hostname which has
|
||||||
// had the proper protocol prepended
|
// had the proper protocol prepended
|
||||||
PasswordRepository.addRemote("origin", hostname, true);
|
PasswordRepository.addRemote("origin", hostname, true);
|
||||||
|
Reference in New Issue
Block a user