X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=hash-object.c;h=ebb3bedb074202a29e2356845012bd1ffae0dc19;hb=e72263a1f88d39a7e3672bbe15a7524f8a3f520a;hp=37e66779ab9e14dbe5b5416d0e19b04d7f122d52;hpb=fd8475d9fb76fbc435ba5dc5b7e97b0cad92661d;p=git.git diff --git a/hash-object.c b/hash-object.c index 37e66779a..ebb3bedb0 100644 --- a/hash-object.c +++ b/hash-object.c @@ -84,8 +84,6 @@ int main(int argc, const char **argv) git_extract_argv0_path(argv[0]); - git_config(git_default_config, NULL); - argc = parse_options(argc, argv, hash_object_options, hash_object_usage, 0); if (write_object) { @@ -95,6 +93,8 @@ int main(int argc, const char **argv) vpath = prefix_filename(prefix, prefix_length, vpath); } + git_config(git_default_config, NULL); + if (stdin_paths) { if (hashstdin) errstr = "Can't use --stdin-paths with --stdin";