aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2014-12-06 00:33:02 +0100
committerzeapo <mohamed@zenadi.com>2014-12-06 00:33:02 +0100
commit1b520cff549db8bac3f2904e45dfb2f4961994ae (patch)
treee4fff77d2c897869040e61594b2b1d3147411541 /app
parent62fa76b33f5e673198958219984daa1e7b5ee644 (diff)
solves a bug where we were unable to clone/pull
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/GitHandler.java11
1 files changed, 10 insertions, 1 deletions
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).