File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -735,7 +735,8 @@ static void report_pack_garbage(struct string_list *list)
735
735
report_helper (list , seen_bits , first , list -> nr );
736
736
}
737
737
738
- static void prepare_packed_git_one (char * objdir , int local )
738
+ #define prepare_packed_git_one (r , o , l ) prepare_packed_git_one_##r(o, l)
739
+ static void prepare_packed_git_one_the_repository (char * objdir , int local )
739
740
{
740
741
struct strbuf path = STRBUF_INIT ;
741
742
size_t dirnamelen ;
@@ -889,10 +890,10 @@ void prepare_packed_git(void)
889
890
890
891
if (the_repository -> objects -> packed_git_initialized )
891
892
return ;
892
- prepare_packed_git_one (get_object_directory (), 1 );
893
+ prepare_packed_git_one (the_repository , get_object_directory (), 1 );
893
894
prepare_alt_odb (the_repository );
894
895
for (alt = the_repository -> objects -> alt_odb_list ; alt ; alt = alt -> next )
895
- prepare_packed_git_one (alt -> path , 0 );
896
+ prepare_packed_git_one (the_repository , alt -> path , 0 );
896
897
rearrange_packed_git (the_repository );
897
898
prepare_packed_git_mru (the_repository );
898
899
the_repository -> objects -> packed_git_initialized = 1 ;
You can’t perform that action at this time.
0 commit comments