mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 06:20:56 +00:00
Remove unnecessary progress logic
The indexer handles this better than the fetch logic does.
This commit is contained in:
parent
0f5520f73a
commit
14157652ee
@ -289,7 +289,6 @@ static int local_download_pack(
|
|||||||
error = git_revwalk_hide(walk, &rhead->loid);
|
error = git_revwalk_hide(walk, &rhead->loid);
|
||||||
} else {
|
} else {
|
||||||
/* Tag or some other wanted object. Add it on its own */
|
/* Tag or some other wanted object. Add it on its own */
|
||||||
stats->total_objects++;
|
|
||||||
error = git_packbuilder_insert(pack, &rhead->oid, rhead->name);
|
error = git_packbuilder_insert(pack, &rhead->oid, rhead->name);
|
||||||
}
|
}
|
||||||
git_object_free(obj);
|
git_object_free(obj);
|
||||||
@ -305,8 +304,6 @@ static int local_download_pack(
|
|||||||
/* Skip commits we already have */
|
/* Skip commits we already have */
|
||||||
if (git_odb_exists(odb, &oid)) continue;
|
if (git_odb_exists(odb, &oid)) continue;
|
||||||
|
|
||||||
stats->total_objects++;
|
|
||||||
|
|
||||||
if (!git_object_lookup((git_object**)&commit, t->repo, &oid, GIT_OBJ_COMMIT)) {
|
if (!git_object_lookup((git_object**)&commit, t->repo, &oid, GIT_OBJ_COMMIT)) {
|
||||||
const git_oid *tree_oid = git_commit_tree_oid(commit);
|
const git_oid *tree_oid = git_commit_tree_oid(commit);
|
||||||
git_commit_free(commit);
|
git_commit_free(commit);
|
||||||
@ -318,7 +315,6 @@ static int local_download_pack(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (progress_cb) progress_cb(stats, progress_payload);
|
|
||||||
if ((error = git_odb_write_pack(&writepack, odb, progress_cb, progress_payload)) < 0)
|
if ((error = git_odb_write_pack(&writepack, odb, progress_cb, progress_payload)) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user