mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 20:43:20 +08:00
git clone: Force use of ssh protocol if not specified
If we don't specify the protocol, then specifying the port number doens't work.
This commit is contained in:
@ -1,3 +1,6 @@
|
|||||||
|
## [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
|
||||||
|
@ -70,6 +70,11 @@ 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,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: gitjournal
|
name: gitjournal
|
||||||
description: A Journaling App Built on top of Git
|
description: A Journaling App Built on top of Git
|
||||||
version: 1.18+10
|
version: 1.19+10
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
|
Reference in New Issue
Block a user