From 110507584b0a29f61bcb18c94a8208115b8c8945 Mon Sep 17 00:00:00 2001 From: Hussein Dossoki Date: Tue, 25 Apr 2023 23:35:30 +0200 Subject: [PATCH] Add comment --- src-tauri/src/git_operations/repository_mirroring.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/git_operations/repository_mirroring.rs b/src-tauri/src/git_operations/repository_mirroring.rs index 719e507..f9937bf 100644 --- a/src-tauri/src/git_operations/repository_mirroring.rs +++ b/src-tauri/src/git_operations/repository_mirroring.rs @@ -15,6 +15,9 @@ pub async fn mirror_repository( let src = format_url(&src_repo_url, &src_pat); let dest = format_url(&dest_repo_url, &dest_pat); + println!("src => {}", src); + println!("dest => {}", dest); + let folder_name = &generate_random_name(); let res = git_config().await; @@ -72,7 +75,9 @@ async fn git_config() -> Result<(), String> { // 1 GB: 1048576000 // 2 GB: 2097152000 (anything higher is rejected as 'out of range') - let cmd = &["config", "--global", "http.postBuffer", "1048576000"]; + // As soon as I did `git config --global --unset http.postBuffer` and `git config --local --unset http.postBuffer `, the push went without any problems. + + let cmd = &["config", "--global", "http.postBuffer", "2097152000"]; let output = Command::new("git") .args(cmd)