Revert "git clone: Force use of ssh protocol if not specified"

This reverts commit 8d11634108c6508674cde5e0e1b69c346a5a6bfd.
This commit is contained in:
Vishesh Handa
2019-11-14 13:21:56 +01:00
parent 8d11634108
commit fddefa3ff3
2 changed files with 0 additions and 8 deletions

View File

@ -1,6 +1,3 @@
## [1.19] - 2019-11-11
* Bug: Allow cloning from a custom port
## [1.18] - 2019-11-02 ## [1.18] - 2019-11-02
* Better handling of Markdown files without YAML headers * Better handling of Markdown files without YAML headers

View File

@ -70,11 +70,6 @@ class GitRepo {
static Future<void> clone(String folderName, String cloneUrl) async { static Future<void> clone(String folderName, String cloneUrl) async {
try { try {
if (!cloneUrl.startsWith('ssh://') &&
!cloneUrl.startsWith('http://') &&
!cloneUrl.startsWith('https://')) {
cloneUrl = 'ssh://' + cloneUrl;
}
await invokePlatformMethod('gitClone', { await invokePlatformMethod('gitClone', {
'cloneUrl': cloneUrl, 'cloneUrl': cloneUrl,
'folderName': folderName, 'folderName': folderName,