mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
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.
This commit is contained in:
@ -185,7 +185,11 @@ String _isCloneUrlValid(String value) {
|
|||||||
if (value.isEmpty) {
|
if (value.isEmpty) {
|
||||||
return 'Please enter some text';
|
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';
|
return 'Only SSH urls are currently accepted';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user