aboutsummaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-19 10:55:40 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-19 10:55:42 -0800
commitee270059057ca87fe9d9c50dbb5fa1399ed98cb1 (patch)
tree608fde265c9f400544d4277d9a9668da70fc2a44 /object.c
parent7ccfc262d7850f2eddd860b31b9f69a152687702 (diff)
parent7048e74609fbef2c91bfa3a80e3a9c4fc0ac04c9 (diff)
downloadgit-ee270059057ca87fe9d9c50dbb5fa1399ed98cb1.tar.xz
Merge branch 'ps/ref-peeled-tags-fixes'
Another fix-up to "peeled-tags" topic. * ps/ref-peeled-tags-fixes: object: fix performance regression when peeling tags
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/object.c b/object.c
index e72b0ed436..b08fc7a163 100644
--- a/object.c
+++ b/object.c
@@ -214,7 +214,7 @@ enum peel_status peel_object(struct repository *r,
{
struct object *o = lookup_unknown_object(r, name);
- if (o->type == OBJ_NONE || flags & PEEL_OBJECT_VERIFY_OBJECT_TYPE) {
+ if (o->type == OBJ_NONE) {
int type = odb_read_object_info(r->objects, name, NULL);
if (type < 0 || !object_as_type(o, type, 0))
return PEEL_INVALID;
@@ -228,7 +228,7 @@ enum peel_status peel_object(struct repository *r,
if (o && o->type == OBJ_TAG && ((struct tag *)o)->tagged) {
o = ((struct tag *)o)->tagged;
- if (flags & PEEL_OBJECT_VERIFY_OBJECT_TYPE) {
+ if (flags & PEEL_OBJECT_VERIFY_TAGGED_OBJECT_TYPE) {
int type = odb_read_object_info(r->objects, &o->oid, NULL);
if (type < 0 || !object_as_type(o, type, 0))
return PEEL_INVALID;