Skip to content

Commit

Permalink
Incorporate fetched packs in future object traversal
Browse files Browse the repository at this point in the history
Immediately after fetching a pack, we should call reprepare_packed_git() to
make sure the objects in the pack are reachable. Otherwise, we will fail to
look up objects that are present only in the fetched pack.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
jherland authored and gitster committed Jun 19, 2008
1 parent e449f10 commit 48ec3e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin-fetch-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,5 +820,6 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args,
}
}

reprepare_packed_git();
return ref_cpy;
}

0 comments on commit 48ec3e5

Please sign in to comment.