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
path: root/blob.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-06-29 04:21:54 +0300
committerJunio C Hamano <gitster@pobox.com>2018-06-29 20:43:38 +0300
commit1268dfac1e98e973c63abb142551c64bba6a44ca (patch)
tree44faa405757f42165cffdd0b55c4f836d0a6e652 /blob.c
parent1ec5bfd24e57c8d40d3f7d911fb9b85723282a46 (diff)
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 'blob.c')
-rw-r--r--blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blob.c b/blob.c
index 75b737a761..dada295698 100644
--- a/blob.c
+++ b/blob.c
@@ -11,7 +11,7 @@ struct blob *lookup_blob(const struct object_id *oid)
if (!obj)
return create_object(the_repository, oid->hash,
alloc_blob_node(the_repository));
- return object_as_type(obj, OBJ_BLOB, 0);
+ return object_as_type(the_repository, obj, OBJ_BLOB, 0);
}
int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size)