fix the case where we're unable to clone if we specify the port 22
This commit is contained in:
parent
b6f5421d67
commit
d0ca596006
1 changed files with 1 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue