summaryrefslogtreecommitdiff
path: root/cat-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'cat-file.c')
-rw-r--r--cat-file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cat-file.c b/cat-file.c
index ef58970d82..d775a1545b 100644
--- a/cat-file.c
+++ b/cat-file.c
@@ -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>");