summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2018-06-28 18:21:54 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-29 10:43:38 -0700
commit1268dfac1e98e973c63abb142551c64bba6a44ca (patch)
tree44faa405757f42165cffdd0b55c4f836d0a6e652 /refs.c
parentobject: add repository argument to parse_object_buffer (diff)
downloadtgif-1268dfac1e98e973c63abb142551c64bba6a44ca.tar.xz
object: add repository argument to object_as_type
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 3b4508a97a..fcfd3171e8 100644
--- a/refs.c
+++ b/refs.c
@@ -305,7 +305,7 @@ enum peel_status peel_object(const struct object_id *name, struct object_id *oid
if (o->type == OBJ_NONE) {
int type = oid_object_info(the_repository, name, NULL);
- if (type < 0 || !object_as_type(o, type, 0))
+ if (type < 0 || !object_as_type(the_repository, o, type, 0))
return PEEL_INVALID;
}