summaryrefslogtreecommitdiff
path: root/builtin/reflog.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-05 20:44:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-05 20:49:59 (GMT)
commite8e92e05ab3b9cda6ae3d5ddf1a83834dca7857b (patch)
tree9eaadb172c0454ff07944303144682c8aff1bc40 /builtin/reflog.c
parente6363a4992637267ef212d7c709ede17d4122e0d (diff)
downloadgit-e8e92e05ab3b9cda6ae3d5ddf1a83834dca7857b.zip
git-e8e92e05ab3b9cda6ae3d5ddf1a83834dca7857b.tar.gz
git-e8e92e05ab3b9cda6ae3d5ddf1a83834dca7857b.tar.bz2
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>
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 b3c9e27..ef56e7b 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);