{
unsigned char sha1[20];
- if (argc != 2 || get_sha1_hex(argv[1], sha1))
- usage("unpack-file.c <sha1>");
+ if (argc != 2 || get_sha1(argv[1], sha1))
+ usage("git-unpack-file <sha1>");
+
+ setup_git_directory();
puts(create_temp_file(sha1));
return 0;