summaryrefslogtreecommitdiff
path: root/src/libgit2/fetch.c
diff options
context:
space:
mode:
authoryuangli <yuangli@mathworks.com>2022-07-29 13:53:29 +0100
committeryuangli <yuangli@mathworks.com>2022-07-29 13:53:29 +0100
commit73d25f0e7b026d7b744e249d922f248376bcce5d (patch)
treed3de8a383270ebc9dba7763b2c7a00a6deaa8bf6 /src/libgit2/fetch.c
parent68bbcefd35a8b3a864e9ed7598b19fefc5f74055 (diff)
downloadlibgit2-73d25f0e7b026d7b744e249d922f248376bcce5d.tar.gz
remove build errors
Diffstat (limited to 'src/libgit2/fetch.c')
-rw-r--r--src/libgit2/fetch.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libgit2/fetch.c b/src/libgit2/fetch.c
index 10155662d..e4a8f0382 100644
--- a/src/libgit2/fetch.c
+++ b/src/libgit2/fetch.c
@@ -209,12 +209,7 @@ int git_fetch_download_pack(git_remote *remote)
if (!remote->need_pack)
return 0;
- if (callbacks) {
- progress = callbacks->transfer_progress;
- payload = callbacks->payload;
- }
-
- if ((error = t->download_pack(t, remote->repo, &remote->stats, progress, payload)) < 0)
+ if ((error = t->download_pack(t, remote->repo, &remote->stats)) < 0)
return error;
if ((error = git_repository__shallow_roots_write(remote->repo, remote->nego.shallow_roots->array)) < 0)