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 <gitster@pobox.com>
Junio C Hamano committed
Mar 5, 2013 at 12:44 UTC
e8e92e05ab3b9cda6ae3d5ddf1a83834dca7857b
1 file changed
+1
-1
builtin/reflog.c
+1
-1
@@ -414,7 +414,7 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused,
414
if (cb.unreachable_expire_kind == UE_HEAD) {
415
struct commit_list *elem;
416
for (elem = tips; elem; elem = elem->next)
417
- clear_commit_marks(tip_commit, REACHABLE);
417
+ clear_commit_marks(elem->item, REACHABLE);
418
free_commit_list(tips);
419
} else {
420
clear_commit_marks(tip_commit, REACHABLE);