Skip to content

Commit

Permalink
cat-file: make it work in a subdirectory.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
(cherry picked from 73244994ee4abd6e436e8a1d597dd917271d77a9 commit)
  • Loading branch information
Junio C Hamano committed Aug 30, 2005
1 parent 8db9307 commit 5da22bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cat-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>");

Expand Down

0 comments on commit 5da22bc

Please sign in to comment.