From: Junio C Hamano Date: Tue, 23 Jan 2007 05:39:03 +0000 (-0800) Subject: reflog gc: a tag that does not point at a commit is not a crime. X-Git-Tag: v1.5.0-rc3~76 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c9a899256920b3266bb29f9d22bf6b9ab1b5a377;p=git.git reflog gc: a tag that does not point at a commit is not a crime. Although unusual, tags can point at any object. Warning only once is fine, but warning every time about the same tag gets annoying. Signed-off-by: Junio C Hamano --- diff --git a/builtin-reflog.c b/builtin-reflog.c index 62e0e96a6..b443ed9ef 100644 --- a/builtin-reflog.c +++ b/builtin-reflog.c @@ -263,9 +263,6 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused, } cb.ref_commit = lookup_commit_reference_gently(sha1, 1); - if (!cb.ref_commit) - fprintf(stderr, - "warning: ref '%s' does not point at a commit\n", ref); cb.ref = ref; cb.cmd = cmd; for_each_reflog_ent(ref, expire_reflog_ent, &cb);