From 080fceb72895b491b3f5db11ba28a9fc92aeed4f Mon Sep 17 00:00:00 2001 From: Noethix55555 <277300782+Noethix55555@users.noreply.github.com> Date: Wed, 17 Jun 2026 20:12:50 -0400 Subject: [PATCH] fix(asyncgit): correct swapped current/total in pack_progress callback --- asyncgit/src/sync/remotes/callbacks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asyncgit/src/sync/remotes/callbacks.rs b/asyncgit/src/sync/remotes/callbacks.rs index 88da888170..f375618f34 100644 --- a/asyncgit/src/sync/remotes/callbacks.rs +++ b/asyncgit/src/sync/remotes/callbacks.rs @@ -71,7 +71,7 @@ impl Callbacks { let this = self.clone(); callbacks.pack_progress(move |stage, current, total| { - this.pack_progress(stage, total, current); + this.pack_progress(stage, current, total); }); let this = self.clone(); @@ -118,8 +118,8 @@ impl Callbacks { fn pack_progress( &self, stage: git2::PackBuilderStage, - total: usize, current: usize, + total: usize, ) { log::debug!("packing: {stage:?} - {current}/{total}"); self.sender.clone().map(|sender| {