summaryrefslogtreecommitdiff
path: root/builtin/reflog.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-03-25 14:00:39 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-03-25 14:00:39 -0700
commit212ca64fb4a50178bf8a83c7b1bab15da5c9ab4c (patch)
tree38a1b118e0fecd672ebca21b5d49df5565b14288 /builtin/reflog.c
parentMerge branch 'ap/maint-diff-rename-avoid-overlap' (diff)
parentreflog: fix typo in "reflog expire" clean-up codepath (diff)
downloadtgif-212ca64fb4a50178bf8a83c7b1bab15da5c9ab4c.tar.xz
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
Diffstat (limited to 'builtin/reflog.c')
-rw-r--r--builtin/reflog.c2
1 files changed, 1 insertions, 1 deletions
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);