summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorPatryk Obara <patryk.obara@gmail.com>2017-08-20 22:09:28 +0200
committerJunio C Hamano <gitster@pobox.com>2017-08-20 21:51:38 -0700
commit98e019b067ac8a34e06f9c412f14a080c7c4dc0d (patch)
tree993e29b9bcffe7603f5b7d377af86aefbb7f1785 /read-cache.c
parentbebfecb94c5c71091a07ebbd300740990d3266c7 (diff)
downloadgit-98e019b067ac8a34e06f9c412f14a080c7c4dc0d.tar.gz
sha1_file: convert index_path to struct object_id
Convert all remaining callers as well. Signed-off-by: Patryk Obara <patryk.obara@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index 72856085f2..17f19a11ff 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -689,7 +689,7 @@ int add_to_index(struct index_state *istate, const char *path, struct stat *st,
return 0;
}
if (!intent_only) {
- if (index_path(ce->oid.hash, path, st, HASH_WRITE_OBJECT)) {
+ if (index_path(&ce->oid, path, st, HASH_WRITE_OBJECT)) {
free(ce);
return error("unable to index file %s", path);
}