Skip to content

Commit e8e92e0

Browse files
committed
reflog: fix typo in "reflog expire" clean-up codepath
In "reflog expire" we were not clearing the REACHABLE bit from objects reachable from the tip of refs we marked earlier. Signed-off-by: Junio C Hamano <[email protected]>
1 parent e6363a4 commit e8e92e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/reflog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused,
414414
if (cb.unreachable_expire_kind == UE_HEAD) {
415415
struct commit_list *elem;
416416
for (elem = tips; elem; elem = elem->next)
417-
clear_commit_marks(tip_commit, REACHABLE);
417+
clear_commit_marks(elem->item, REACHABLE);
418418
free_commit_list(tips);
419419
} else {
420420
clear_commit_marks(tip_commit, REACHABLE);

0 commit comments

Comments
 (0)