aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2017-01-16 20:53:23 +0100
committerMohamed Zenadi <mohamed@zenadi.com>2017-01-16 20:53:23 +0100
commitd0ca59600660eba9146a147881dc6e6dda9844a1 (patch)
tree174581ebf89cfbf35f4d7adecbe6838d8ba83f66
parentb6f5421d674cea5f5a479080bbd9c4857712764d (diff)
fix the case where we're unable to clone if we specify the port 22
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
index 96104e67..faea01aa 100644
--- a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
+++ b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
@@ -426,9 +426,8 @@ public class GitActivity extends AppCompatActivity {
if (!protocol.equals("ssh://")) {
hostname = protocol + hostname;
} else {
-
// if the port is explicitly given, jgit requires the ssh://
- if (!port.isEmpty())
+ if (!port.isEmpty() && !port.equals("22"))
hostname = protocol + hostname;
// did he forget the username?