Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinDossoki committed Apr 25, 2023
1 parent 5164c3d commit 1105075
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src-tauri/src/git_operations/repository_mirroring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1105075

Please sign in to comment.