summaryrefslogtreecommitdiff
path: root/line-log.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-06-27 09:56:49 -0700
committerJunio C Hamano <gitster@pobox.com>2016-06-27 09:56:50 -0700
commit2a5618ec78c5689295fa7feae590823df606f3b3 (patch)
tree552e3bab74f23aa8e5ec996fd41f42a94b222ce0 /line-log.c
parentc49fd57bf472143b1a0bbfb246c91e6ea0f06887 (diff)
parent31da121f2d316575ec3c82dfc0c7442cdb7a7740 (diff)
downloadgit-2a5618ec78c5689295fa7feae590823df606f3b3.tar.gz
Merge branch 'jc/deref-tag'
Code clean-up. * jc/deref-tag: blame, line-log: do not loop around deref_tag()
Diffstat (limited to 'line-log.c')
-rw-r--r--line-log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/line-log.c b/line-log.c
index bbe31ed6fb..1fbbe4f0af 100644
--- a/line-log.c
+++ b/line-log.c
@@ -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)