X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=cat-file.c;h=d775a1545beb84caf05cae8980fb2d839240fdea;hb=ee72aeaf009417156a3599b0eb69da3f7023ca07;hp=fa0bb722a2455fd4274f61e800cd9f5a764dda1e;hpb=c62266f37c677c1de7415ac6cf1e2eb6726590e1;p=git.git diff --git a/cat-file.c b/cat-file.c index fa0bb722..d775a154 100644 --- a/cat-file.c +++ b/cat-file.c @@ -12,8 +12,9 @@ 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 | tagname] "); + usage("git-cat-file [-t | -s | ] "); if (!strcmp("-t", argv[1]) || !strcmp("-s", argv[1])) { if (!sha1_object_info(sha1, type,