diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-30 09:07:50 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-30 13:56:21 -0700 |
commit | 5da22bc14b6a8329c181067ad8a8b383dab512fc (patch) | |
tree | 0a76f0e5bc44fa465d8fe705622adc9206c5e65c /cat-file.c | |
parent | 8db9307c9ca143fedaa972236054a5783c40bd37 (diff) | |
download | git-5da22bc14b6a8329c181067ad8a8b383dab512fc.tar.gz |
cat-file: make it work in a subdirectory.
Signed-off-by: Junio C Hamano <junkio@cox.net>
(cherry picked from 73244994ee4abd6e436e8a1d597dd917271d77a9 commit)
Diffstat (limited to 'cat-file.c')
-rw-r--r-- | cat-file.c | 1 |
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>"); |