Merge branch 'jk/send-pack-stdio' into maint
[gitweb.git] / line-log.c
index bbe31ed6fbb7c103c739f7e9a3c45cde5d36fcec..1fbbe4f0af5863ebb1d0f393a3ce1ddec61e9671 100644 (file)
@@ -480,8 +480,7 @@ static struct commit *check_single_commit(struct rev_info *revs)
                struct object *obj = revs->pending.objects[i].item;
                if (obj->flags & UNINTERESTING)
                        continue;
-               while (obj->type == OBJ_TAG)
-                       obj = deref_tag(obj, NULL, 0);
+               obj = deref_tag(obj, NULL, 0);
                if (obj->type != OBJ_COMMIT)
                        die("Non commit %s?", revs->pending.objects[i].name);
                if (commit)