@@ -883,19 +883,19 @@ static void prepare_packed_git_mru(struct repository *r)
883
883
list_add_tail (& p -> mru , & r -> objects -> packed_git_mru );
884
884
}
885
885
886
- void prepare_packed_git_the_repository ( void )
886
+ void prepare_packed_git ( struct repository * r )
887
887
{
888
888
struct alternate_object_database * alt ;
889
889
890
- if (the_repository -> objects -> packed_git_initialized )
890
+ if (r -> objects -> packed_git_initialized )
891
891
return ;
892
- prepare_packed_git_one (the_repository , get_object_directory () , 1 );
893
- prepare_alt_odb (the_repository );
894
- for (alt = the_repository -> objects -> alt_odb_list ; alt ; alt = alt -> next )
895
- prepare_packed_git_one (the_repository , alt -> path , 0 );
896
- rearrange_packed_git (the_repository );
897
- prepare_packed_git_mru (the_repository );
898
- the_repository -> objects -> packed_git_initialized = 1 ;
892
+ prepare_packed_git_one (r , r -> objects -> objectdir , 1 );
893
+ prepare_alt_odb (r );
894
+ for (alt = r -> objects -> alt_odb_list ; alt ; alt = alt -> next )
895
+ prepare_packed_git_one (r , alt -> path , 0 );
896
+ rearrange_packed_git (r );
897
+ prepare_packed_git_mru (r );
898
+ r -> objects -> packed_git_initialized = 1 ;
899
899
}
900
900
901
901
void reprepare_packed_git_the_repository (void )
0 commit comments