1
0
mirror of https://github.com/git/git.git synced 2024-11-18 04:14:01 +01:00

cat-file: make it work in a subdirectory.

Signed-off-by: Junio C Hamano <junkio@cox.net>
(cherry picked from 73244994ee4abd6e436e8a1d597dd917271d77a9 commit)
This commit is contained in:
Junio C Hamano 2005-08-30 09:07:50 -07:00
parent 8db9307c9c
commit 5da22bc14b

@ -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>");