diff options
Diffstat (limited to 'builtin/reflog.c')
| -rw-r--r-- | builtin/reflog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/reflog.c b/builtin/reflog.c index a4b1dd27e1..83a98cface 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -382,6 +382,8 @@ static void reflog_expiry_prepare(const char *refname, cb->unreachable_expire_kind = UE_HEAD; } else { commit = lookup_commit(the_repository, oid); + if (commit && is_null_oid(&commit->object.oid)) + commit = NULL; cb->unreachable_expire_kind = commit ? UE_NORMAL : UE_ALWAYS; } |
