Merge branch 'sg/t6500-no-redirect-of-stdin'
[gitweb.git] / sha1-file.c
index f66059ed7dd9aa8040568094a7ad6fa316d18e55..e47098eff2828c573a4a2eb3cce3dc7a5520b3e5 100644 (file)
@@ -2232,7 +2232,7 @@ int read_loose_object(const char *path,
                goto out;
        }
 
-       if (*type == OBJ_BLOB) {
+       if (*type == OBJ_BLOB && *size > big_file_threshold) {
                if (check_stream_sha1(&stream, hdr, *size, path, expected_oid->hash) < 0)
                        goto out;
        } else {