{"thread":{"id":"33079","subject":"[PATCH] reflog: fix typo in \"reflog expire\" clean-up codepath","startedAt":"2013-03-05T21:39:06Z","lastAt":"2013-03-05T21:39:06Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"210661","messageId":"7vtxopsf0l.fsf@alter.siamese.dyndns.org","threadId":"33079","inReplyTo":null,"subject":"[PATCH] reflog: fix typo in \"reflog expire\" clean-up codepath","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-03-05T21:39:06Z","receivedAt":"2013-03-05T21:39:06Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"In \"reflog expire\" we were not clearing the REACHABLE bit from\nobjects reachable from the tip of refs we marked earlier.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>\n---\n builtin/reflog.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/builtin/reflog.c b/builtin/reflog.c\nindex b3c9e27..ef56e7b 100644\n--- a/builtin/reflog.c\n+++ b/builtin/reflog.c\n@@ -414,7 +414,7 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused,\n \t\tif (cb.unreachable_expire_kind == UE_HEAD) {\n \t\t\tstruct commit_list *elem;\n \t\t\tfor (elem = tips; elem; elem = elem->next)\n-\t\t\t\tclear_commit_marks(tip_commit, REACHABLE);\n+\t\t\t\tclear_commit_marks(elem->item, REACHABLE);\n \t\t\tfree_commit_list(tips);\n \t\t} else {\n \t\t\tclear_commit_marks(tip_commit, REACHABLE);\n-- \n1.8.2-rc2-187-g1ea4a7c\n"}]}