Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit d0ca596

Browse files
committed
fix the case where we're unable to clone if we specify the port 22
1 parent b6f5421 commit d0ca596

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,8 @@ private boolean saveConfiguration() {
426426
if (!protocol.equals("ssh://")) {
427427
hostname = protocol + hostname;
428428
} else {
429-
430429
// if the port is explicitly given, jgit requires the ssh://
431-
if (!port.isEmpty())
430+
if (!port.isEmpty() && !port.equals("22"))
432431
hostname = protocol + hostname;
433432

434433
// did he forget the username?

0 commit comments

Comments
 (0)