From fddefa3ff352df072a0c9b76072eda4c88213cd2 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 14 Nov 2019 13:21:56 +0100 Subject: [PATCH] Revert "git clone: Force use of ssh protocol if not specified" This reverts commit 8d11634108c6508674cde5e0e1b69c346a5a6bfd. --- CHANGELOG.md | 3 --- lib/apis/git.dart | 5 ----- 2 files changed, 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb2a19b7..4f6901ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,3 @@ -## [1.19] - 2019-11-11 -* Bug: Allow cloning from a custom port - ## [1.18] - 2019-11-02 * Better handling of Markdown files without YAML headers diff --git a/lib/apis/git.dart b/lib/apis/git.dart index ea302405..3821aa11 100644 --- a/lib/apis/git.dart +++ b/lib/apis/git.dart @@ -70,11 +70,6 @@ class GitRepo { static Future clone(String folderName, String cloneUrl) async { try { - if (!cloneUrl.startsWith('ssh://') && - !cloneUrl.startsWith('http://') && - !cloneUrl.startsWith('https://')) { - cloneUrl = 'ssh://' + cloneUrl; - } await invokePlatformMethod('gitClone', { 'cloneUrl': cloneUrl, 'folderName': folderName,