mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 05:48:09 +00:00
fix the case where we're unable to clone if we specify the port 22
This commit is contained in:
parent
b6f5421d67
commit
d0ca596006
@ -426,9 +426,8 @@ public class GitActivity extends AppCompatActivity {
|
|||||||
if (!protocol.equals("ssh://")) {
|
if (!protocol.equals("ssh://")) {
|
||||||
hostname = protocol + hostname;
|
hostname = protocol + hostname;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// if the port is explicitly given, jgit requires the ssh://
|
// if the port is explicitly given, jgit requires the ssh://
|
||||||
if (!port.isEmpty())
|
if (!port.isEmpty() && !port.equals("22"))
|
||||||
hostname = protocol + hostname;
|
hostname = protocol + hostname;
|
||||||
|
|
||||||
// did he forget the username?
|
// did he forget the username?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user