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:
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>");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user