sha1_file: convert index_fd to struct object_id
[gitweb.git] / builtin / hash-object.c
index 1c0f0f332796f00bbd2705c0eb67aeab2be3809b..8a58ce085a80d2c9aa38763d97112589f50fa237 100644 (file)
@@ -38,7 +38,7 @@ static void hash_fd(int fd, const char *type, const char *path, unsigned flags,
        if (fstat(fd, &st) < 0 ||
            (literally
             ? hash_literally(&oid, fd, type, flags)
-            : index_fd(oid.hash, fd, &st, type_from_string(type), path, flags)))
+            : index_fd(&oid, fd, &st, type_from_string(type), path, flags)))
                die((flags & HASH_WRITE_OBJECT)
                    ? "Unable to add %s to database"
                    : "Unable to hash %s", path);