safe_create_leading_directories: fix race that could give a false negative
[gitweb.git] / builtin / cat-file.c
index 60568f9c39955e72e454c7d22b143d3e72a1a9a5..0eca2d7bd0e6d620edc70b4f643a8911efbbc8ae 100644 (file)
@@ -91,7 +91,7 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name)
        unsigned long size;
        struct object_context obj_context;
 
-       if (get_sha1_with_context(obj_name, sha1, &obj_context))
+       if (get_sha1_with_context(obj_name, 0, sha1, &obj_context))
                die("Not a valid object name %s", obj_name);
 
        buf = NULL;