prune.c: only print informational message in show_only or verbose mode
[gitweb.git] / builtin / cat-file.c
index 36a9104433e23422aab39b1912e998a7f54cd3f4..af74e775a182bdf764436362cb37471e74930459 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;