packfile: add repository argument to reprepare_packed_git
[gitweb.git] / reachable.c
index c62efbfd43b9c4ddc25d6768d55bddc745f5c14b..25cfd99d1cae0bd1180ec0c7476a013859a0f2b5 100644 (file)
@@ -9,6 +9,9 @@
 #include "cache-tree.h"
 #include "progress.h"
 #include "list-objects.h"
+#include "packfile.h"
+#include "worktree.h"
+#include "object-store.h"
 
 struct connectivity_progress {
        struct progress *progress;
@@ -176,6 +179,7 @@ void mark_reachable_objects(struct rev_info *revs, int mark_reflog,
 
        /* detached HEAD is not included in the list above */
        head_ref(add_one_ref, revs);
+       other_head_refs(add_one_ref, revs);
 
        /* Add all reflog info */
        if (mark_reflog)