From: Junio C Hamano Date: Mon, 25 Mar 2013 21:00:39 +0000 (-0700) Subject: Merge branch 'jc/maint-reflog-expire-clean-mark-typofix' X-Git-Tag: v1.8.3-rc0~183 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/212ca64fb4a50178bf8a83c7b1bab15da5c9ab4c?hp=caf217a3b8ed4b88f58e2a151c07221d37db7abe Merge branch 'jc/maint-reflog-expire-clean-mark-typofix' 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 --- diff --git a/builtin/reflog.c b/builtin/reflog.c index 1fedf66329..72a0af70c3 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -414,7 +414,7 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused, if (cb.unreachable_expire_kind == UE_HEAD) { struct commit_list *elem; for (elem = tips; elem; elem = elem->next) - clear_commit_marks(tip_commit, REACHABLE); + clear_commit_marks(elem->item, REACHABLE); free_commit_list(tips); } else { clear_commit_marks(tip_commit, REACHABLE);