Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/maint-reflog-expire-clean-mark-typofix'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 25 Mar 2013 21:00:39 +0000
(14:00 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 25 Mar 2013 21:00:39 +0000
(14:00 -0700)
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
builtin/reflog.c
patch
|
blob
|
history
raw
(from parent 1:
caf217a
)
diff --git
a/builtin/reflog.c
b/builtin/reflog.c
index 1fedf66329d73f192d80d3d42789c290a839d7b0..72a0af70c3dcd7d108887cd289bc7b3c606226aa 100644
(file)
--- 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);