aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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?