From d0ca59600660eba9146a147881dc6e6dda9844a1 Mon Sep 17 00:00:00 2001 From: Mohamed Zenadi Date: Mon, 16 Jan 2017 20:53:23 +0100 Subject: [PATCH] fix the case where we're unable to clone if we specify the port 22 --- app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java | 3 +-- 1 file changed, 1 insertion(+), 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?