@matheusbsbs / matheus-bagliano / commits / c9a8992569
Fork 0

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 <junkio@cox.net>

Junio C Hamano committed Jan 22, 2007 at 21:39 UTC c9a899256920b3266bb29f9d22bf6b9ab1b5a377
1 file changed -3
builtin-reflog.c
-3
@@ -263,9 +263,6 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused,
263 }
264
265 cb.ref_commit = lookup_commit_reference_gently(sha1, 1);
266 - if (!cb.ref_commit)
267 - fprintf(stderr,
268 - "warning: ref '%s' does not point at a commit\n", ref);
266 cb.ref = ref;
267 cb.cmd = cmd;
268 for_each_reflog_ent(ref, expire_reflog_ent, &cb);