Skip to content

Commit 1d66383

Browse files
committed
Merge branch 'jc/maint-reflog-expire-clean-mark-typofix' into maint
In "git reflog expire", REACHABLE bit was not cleared from the correct objects. * jc/maint-reflog-expire-clean-mark-typofix: reflog: fix typo in "reflog expire" clean-up codepath
2 parents 1252f8b + e8e92e0 commit 1d66383

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)