diff options
| author | Andre Hartmann <[email protected]> | 2018-10-07 15:26:22 +0200 |
|---|---|---|
| committer | André Hartmann <[email protected]> | 2018-10-07 15:43:39 +0000 |
| commit | 96f982a016c7f151bb88aa0ac6dd7a9c46e1244d (patch) | |
| tree | 1745f1262ad88fcf5e350306ef68758dd19cf249 /src/plugins/git/gitplugin.cpp | |
| parent | 0dfb2938edb1be3ef4ccea3e5ccc81c66190a247 (diff) | |
Git: Check remote port for isValid in GitRemote
Change-Id: Iab922abcde0ac055417467f3c63a31dffa721986
Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
| -rw-r--r-- | src/plugins/git/gitplugin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 6d5001ece74..51703db2d6f 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -1599,6 +1599,12 @@ void GitPlugin::testGitRemote_data() .host("code.qt.io") .port(80) .path("/qt-creator/qt-creator.git"); + QTest::newRow("invalid-port") + << RemoteTest("https://code.qt.io:99999/qt-creator/qt-creator.git") + .protocol("https") + .host("code.qt.io") + .path("/qt-creator/qt-creator.git") + .isValid(false); QTest::newRow("ssh-user-foo") << RemoteTest("ssh://[email protected]:29418/qt-creator/qt-creator.git") .protocol("ssh") |
