Handle new git_bindings

In ios we use ssh in memory. On Android it just doesn't seem to work.
This commit is contained in:
Vishesh Handa
2020-10-21 16:26:20 +02:00
parent bfdbfccba7
commit 1dda2ce1c0
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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"