@@ -593,7 +593,10 @@ int get_tree_entry(struct repository *r,
593
593
* See the code for enum get_oid_result for a description of
594
594
* the return values.
595
595
*/
596
- enum get_oid_result get_tree_entry_follow_symlinks (struct object_id * tree_oid , const char * name , struct object_id * result , struct strbuf * result_path , unsigned short * mode )
596
+ enum get_oid_result get_tree_entry_follow_symlinks (struct repository * r ,
597
+ struct object_id * tree_oid , const char * name ,
598
+ struct object_id * result , struct strbuf * result_path ,
599
+ unsigned short * mode )
597
600
{
598
601
int retval = MISSING_OBJECT ;
599
602
struct dir_state * parents = NULL ;
@@ -617,7 +620,7 @@ enum get_oid_result get_tree_entry_follow_symlinks(struct object_id *tree_oid, c
617
620
void * tree ;
618
621
struct object_id root ;
619
622
unsigned long size ;
620
- tree = read_object_with_reference (the_repository ,
623
+ tree = read_object_with_reference (r ,
621
624
& current_tree_oid ,
622
625
tree_type , & size ,
623
626
& root );
@@ -687,7 +690,7 @@ enum get_oid_result get_tree_entry_follow_symlinks(struct object_id *tree_oid, c
687
690
}
688
691
689
692
/* Look up the first (or only) path component in the tree. */
690
- find_result = find_tree_entry (the_repository , & t , namebuf .buf ,
693
+ find_result = find_tree_entry (r , & t , namebuf .buf ,
691
694
& current_tree_oid , mode );
692
695
if (find_result ) {
693
696
goto done ;
@@ -731,7 +734,8 @@ enum get_oid_result get_tree_entry_follow_symlinks(struct object_id *tree_oid, c
731
734
*/
732
735
retval = DANGLING_SYMLINK ;
733
736
734
- contents = read_object_file (& current_tree_oid , & type ,
737
+ contents = repo_read_object_file (r ,
738
+ & current_tree_oid , & type ,
735
739
& link_len );
736
740
737
741
if (!contents )
0 commit comments