From 1b520cff549db8bac3f2904e45dfb2f4961994ae Mon Sep 17 00:00:00 2001 From: zeapo Date: Sat, 6 Dec 2014 00:33:02 +0100 Subject: solves a bug where we were unable to clone/pull --- app/src/main/java/com/zeapo/pwdstore/GitHandler.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/GitHandler.java b/app/src/main/java/com/zeapo/pwdstore/GitHandler.java index 98544621..bf2b92b5 100644 --- a/app/src/main/java/com/zeapo/pwdstore/GitHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/GitHandler.java @@ -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). -- cgit v1.2.3