]> git.ipfire.org Git - thirdparty/git.git/blobdiff - reachable.c
The seventh batch
[thirdparty/git.git] / reachable.c
index 3b85add243ba79a4ccc90c9faacbb9fee2742303..1224b300086fc99df57290494a75a168d2bb199f 100644 (file)
@@ -363,10 +363,11 @@ void mark_reachable_objects(struct rev_info *revs, int mark_reflog,
        add_index_objects_to_pending(revs, 0);
 
        /* Add all external refs */
-       for_each_ref(add_one_ref, revs);
+       refs_for_each_ref(get_main_ref_store(the_repository), add_one_ref,
+                         revs);
 
        /* detached HEAD is not included in the list above */
-       head_ref(add_one_ref, revs);
+       refs_head_ref(get_main_ref_store(the_repository), add_one_ref, revs);
        other_head_refs(add_one_ref, revs);
 
        /* rebase autostash and orig-head */