Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-23 08:39:03 +0300
committerJunio C Hamano <junkio@cox.net>2007-01-23 08:39:03 +0300
commitc9a899256920b3266bb29f9d22bf6b9ab1b5a377 (patch)
treecf09994739688cee988c609f7c37dae103435d8e /builtin-reflog.c
parent222664e74dec10303bfa0c99e88f31563fdc6952 (diff)
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>
Diffstat (limited to 'builtin-reflog.c')
-rw-r--r--builtin-reflog.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin-reflog.c b/builtin-reflog.c
index 62e0e96a67..b443ed9ef6 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);