Desktop: Enable fetch/push on linux

This commit is contained in:
Vishesh Handa
2021-08-24 17:24:46 +02:00
parent 2c7c98f03f
commit 01934bc504
2 changed files with 6 additions and 3 deletions

View File

@ -219,8 +219,8 @@ class GitNoteRepository {
} on Exception catch (ex, stackTrace) {
return Result.fail(ex, stackTrace);
}
} else if (Platform.isMacOS) {
await gitPushViaExecutable(
} else if (Platform.isMacOS || Platform.isLinux) {
await gitFetchViaExecutable(
privateKey: config.sshPrivateKey,
privateKeyPassword: config.sshPassword,
remoteName: remoteName,
@ -306,7 +306,7 @@ class GitNoteRepository {
Log.e("GitPush Failed", ex: ex, stacktrace: stackTrace);
rethrow;
}
} else if (Platform.isMacOS) {
} else if (Platform.isMacOS || Platform.isLinux) {
await gitPushViaExecutable(
privateKey: config.sshPrivateKey,
privateKeyPassword: config.sshPassword,