diff options
author | Mohamed Zenadi <mohamed@zenadi.com> | 2017-01-16 20:53:23 +0100 |
---|---|---|
committer | Mohamed Zenadi <mohamed@zenadi.com> | 2017-01-16 20:53:23 +0100 |
commit | d0ca59600660eba9146a147881dc6e6dda9844a1 (patch) | |
tree | 174581ebf89cfbf35f4d7adecbe6838d8ba83f66 | |
parent | b6f5421d674cea5f5a479080bbd9c4857712764d (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.java | 3 |
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? |