X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=inline;f=unpack-objects.c;h=cfd61ae6b08c0635da4044ec3ab09f40c3178632;hb=b270c634b7d3dd197de6d155770fd7b044d76c5c;hp=7e7be5cbd42e2f6ad178f1a2832673c8e9279e4e;hpb=638ccfdf0eeabf3d985426308b2a82db6207ae28;p=git.git diff --git a/unpack-objects.c b/unpack-objects.c index 7e7be5cb..cfd61ae6 100644 --- a/unpack-objects.c +++ b/unpack-objects.c @@ -6,7 +6,7 @@ #include static int dry_run, quiet; -static const char unpack_usage[] = "git-unpack-objects < pack-file"; +static const char unpack_usage[] = "git-unpack-objects [-n] [-q] < pack-file"; /* We always read in 4kB chunks. */ static unsigned char buffer[4096]; @@ -269,6 +269,8 @@ int main(int argc, char **argv) int i; unsigned char sha1[20]; + setup_git_directory(); + for (i = 1 ; i < argc; i++) { const char *arg = argv[i];