summaryrefslogtreecommitdiff
path: root/reachable.c
diff options
context:
space:
mode:
Diffstat (limited to 'reachable.c')
-rw-r--r--reachable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/reachable.c b/reachable.c
index c62efbfd43..88d7d679da 100644
--- a/reachable.c
+++ b/reachable.c
@@ -9,6 +9,8 @@
#include "cache-tree.h"
#include "progress.h"
#include "list-objects.h"
+#include "packfile.h"
+#include "worktree.h"
struct connectivity_progress {
struct progress *progress;
@@ -176,6 +178,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)