From: Junio C Hamano Date: Tue, 30 Aug 2005 16:07:50 +0000 (-0700) Subject: cat-file: make it work in a subdirectory. X-Git-Tag: v0.99.6~40 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5da22bc14b6a8329c181067ad8a8b383dab512fc;p=git.git cat-file: make it work in a subdirectory. Signed-off-by: Junio C Hamano (cherry picked from 73244994ee4abd6e436e8a1d597dd917271d77a9 commit) --- diff --git a/cat-file.c b/cat-file.c index ef58970d8..d775a1545 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 | ] ");