name-rev: fix off-by-one error in --stdin.
[gitweb.git] / cat-file.c
index ef58970d82ae9d6e62ec43c496ac1677aedeee3f..d775a1545beb84caf05cae8980fb2d839240fdea 100644 (file)
@@ -12,6 +12,7 @@ int main(int argc, char **argv)
        void *buf;
        unsigned long size;
 
+       setup_git_directory();
        if (argc != 3 || get_sha1(argv[2], sha1))
                usage("git-cat-file [-t | -s | <type>] <sha1>");