From 5da22bc14b6a8329c181067ad8a8b383dab512fc Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 30 Aug 2005 09:07:50 -0700 Subject: [PATCH] cat-file: make it work in a subdirectory. Signed-off-by: Junio C Hamano (cherry picked from 73244994ee4abd6e436e8a1d597dd917271d77a9 commit) --- cat-file.c | 1 + 1 file changed, 1 insertion(+) 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 | ] "); -- 2.30.2