Commit 14157652 by Ben Straub

Remove unnecessary progress logic

The indexer handles this better than the fetch
logic does.
parent 0f5520f7
......@@ -289,7 +289,6 @@ static int local_download_pack(
error = git_revwalk_hide(walk, &rhead->loid);
} else {
/* Tag or some other wanted object. Add it on its own */
stats->total_objects++;
error = git_packbuilder_insert(pack, &rhead->oid, rhead->name);
}
git_object_free(obj);
......@@ -305,8 +304,6 @@ static int local_download_pack(
/* Skip commits we already have */
if (git_odb_exists(odb, &oid)) continue;
stats->total_objects++;
if (!git_object_lookup((git_object**)&commit, t->repo, &oid, GIT_OBJ_COMMIT)) {
const git_oid *tree_oid = git_commit_tree_oid(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)
goto cleanup;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment