diff options
author | Stefan Beller <sbeller@google.com> | 2018-06-29 03:21:54 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-29 19:43:38 +0200 |
commit | 1268dfac1e98e973c63abb142551c64bba6a44ca (patch) | |
tree | 44faa405757f42165cffdd0b55c4f836d0a6e652 /commit.c | |
parent | object: add repository argument to parse_object_buffer (diff) | |
download | git-1268dfac1e98e973c63abb142551c64bba6a44ca.tar.xz git-1268dfac1e98e973c63abb142551c64bba6a44ca.zip |
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 'commit.c')
-rw-r--r-- | commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,7 +32,7 @@ struct commit *lookup_commit_reference_gently(const struct object_id *oid, if (!obj) return NULL; - return object_as_type(obj, OBJ_COMMIT, quiet); + return object_as_type(the_repository, obj, OBJ_COMMIT, quiet); } struct commit *lookup_commit_reference(const struct object_id *oid) @@ -58,7 +58,7 @@ struct commit *lookup_commit(const struct object_id *oid) if (!obj) return create_object(the_repository, oid->hash, alloc_commit_node(the_repository)); - return object_as_type(obj, OBJ_COMMIT, 0); + return object_as_type(the_repository, obj, OBJ_COMMIT, 0); } struct commit *lookup_commit_reference_by_name(const char *name) |