Merge branch 'ab/reflog-prep-fix'
Regression fix. * ab/reflog-prep-fix: reflog: don't be noisy on empty reflogs
This commit is contained in:
2
reflog.c
2
reflog.c
@@ -334,6 +334,8 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user