make git clone -q suppress the noise with http fetch
[gitweb.git] / builtin-reflog.c
index cefb40da812819ed6c8af245f676b0365e23d3ea..186aabce042a1d6e5d83141495a854db09223bf8 100644 (file)
@@ -55,8 +55,8 @@ static int tree_is_complete(const unsigned char *sha1)
        desc.buf = tree->buffer;
        desc.size = tree->size;
        if (!desc.buf) {
-               char type[20];
-               void *data = read_sha1_file(sha1, type, &desc.size);
+               enum object_type type;
+               void *data = read_sha1_file(sha1, &type, &desc.size);
                if (!data) {
                        tree->object.flags |= INCOMPLETE;
                        return 0;