mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 05:48:09 +00:00
solves a bug where we were unable to clone/pull
This commit is contained in:
parent
62fa76b33f
commit
1b520cff54
@ -568,7 +568,16 @@ public class GitHandler extends ActionBarActivity {
|
||||
|
||||
public void cloneOperation(UsernamePasswordCredentialsProvider provider) {
|
||||
|
||||
saveConfiguration(null);
|
||||
// remember the settings
|
||||
SharedPreferences.Editor editor = settings.edit();
|
||||
|
||||
editor.putString("git_remote_server", ((EditText) findViewById(R.id.server_url)).getText().toString());
|
||||
editor.putString("git_remote_location", ((EditText) findViewById(R.id.server_path)).getText().toString());
|
||||
editor.putString("git_remote_username", ((EditText) findViewById(R.id.server_user)).getText().toString());
|
||||
editor.putString("git_remote_protocol", protocol);
|
||||
editor.putString("git_remote_auth", connectionMode);
|
||||
editor.putString("git_remote_port", port);
|
||||
editor.commit();
|
||||
|
||||
CloneCommand cmd = Git.cloneRepository().
|
||||
setCredentialsProvider(provider).
|
||||
|
Loading…
x
Reference in New Issue
Block a user