diff options
Diffstat (limited to 'src/libgit2/fetch.c')
-rw-r--r-- | src/libgit2/fetch.c | 7 |
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) |