mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-24 01:08:09 +08:00

I want the git_setup code to only have the UI. Nothing else. The cloning process for GitJournal is very specific to GitJournal. It doesn't need to be that complicated for other projects.
15 lines
395 B
Dart
15 lines
395 B
Dart
/*
|
|
* SPDX-FileCopyrightText: 2019-2021 Vishesh Handa <me@vhanda.in>
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import 'package:universal_io/io.dart' show Platform;
|
|
|
|
import 'clone_git_exec.dart' as git_exec;
|
|
import 'clone_libgit2.dart' as libgit2;
|
|
|
|
final isMobileApp = Platform.isIOS || Platform.isAndroid;
|
|
|
|
var cloneRemote = isMobileApp ? libgit2.cloneRemote : git_exec.cloneRemote;
|