From 764209fe57cd7901a5591e356207df0571793d5e Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 22 Dec 2019 18:49:46 +0100 Subject: [PATCH] CloneUrl Validation: We do not support the git protocol Well, we actually do support it, but I don't want users to use it, as I have no intention of supporting it in the future. In the future - Git will be written entirely in Dart. --- lib/screens/githostsetup_clone_url.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/screens/githostsetup_clone_url.dart b/lib/screens/githostsetup_clone_url.dart index 0e4ea38e..e22ae52c 100644 --- a/lib/screens/githostsetup_clone_url.dart +++ b/lib/screens/githostsetup_clone_url.dart @@ -185,7 +185,11 @@ String _isCloneUrlValid(String value) { if (value.isEmpty) { return 'Please enter some text'; } - if (value.startsWith('https://') || value.startsWith('http://')) { + if (value.startsWith('https://') || + value.startsWith('http://') || + value.startsWith('git://') || + value.startsWith('ssh+git://') || + value.startsWith('git+ssh://')) { return 'Only SSH urls are currently accepted'; }