From 1dda2ce1c028905375116327b9181f43a5f3f856 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Wed, 21 Oct 2020 16:26:20 +0200 Subject: [PATCH] Handle new git_bindings In ios we use ssh in memory. On Android it just doesn't seem to work. --- ios/Runner/AppDelegate.m | 4 ++-- pubspec.lock | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/Runner/AppDelegate.m b/ios/Runner/AppDelegate.m index 5c94b51c..154228f1 100644 --- a/ios/Runner/AppDelegate.m +++ b/ios/Runner/AppDelegate.m @@ -235,7 +235,7 @@ bool handleError(FlutterResult result, int err) { return; } - int err = gj_git_fetch([folderPath UTF8String], [remote UTF8String], [publicKey UTF8String], [privateKey UTF8String], [password UTF8String]); + int err = gj_git_fetch([folderPath UTF8String], [remote UTF8String], [publicKey UTF8String], [privateKey UTF8String], [password UTF8String], true); if (!handleError(result, err)) { result(@YES); return; @@ -308,7 +308,7 @@ bool handleError(FlutterResult result, int err) { return; } - int err = gj_git_push([folderPath UTF8String], [remote UTF8String], [publicKey UTF8String], [privateKey UTF8String], [password UTF8String]); + int err = gj_git_push([folderPath UTF8String], [remote UTF8String], [publicKey UTF8String], [privateKey UTF8String], [password UTF8String], true); if (!handleError(result, err)) { result(@YES); return; diff --git a/pubspec.lock b/pubspec.lock index fbd0e106..88734bf2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -437,7 +437,7 @@ packages: description: path: "." ref: HEAD - resolved-ref: e7e957acdaff208744b5b1fff9a611cbfbd1de34 + resolved-ref: "2598c4cf21c4e23639b7eb5f3e1dd66cfd8eccd9" url: "https://github.com/GitJournal/git_bindings.git" source: git version: "0.0.18"