X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=hash-object.c;h=47cf43c3cdd2bcd7638360a130fc8ef04ce132e9;hb=e064c170b4abe21f50658f2ec3b07e4ec7520767;hp=adfd5336a31412681415c47d2420aba8ed299ae3;hpb=3f3e2c26fa0325f4df952363f8f5046ca8158bb3;p=git.git diff --git a/hash-object.c b/hash-object.c index adfd5336a..47cf43c3c 100644 --- a/hash-object.c +++ b/hash-object.c @@ -8,6 +8,7 @@ #include "blob.h" #include "quote.h" #include "parse-options.h" +#include "exec_cmd.h" static void hash_fd(int fd, const char *type, int write_object, const char *path) { @@ -81,7 +82,10 @@ int main(int argc, const char **argv) type = blob_type; - argc = parse_options(argc, argv, hash_object_options, hash_object_usage, 0); + git_extract_argv0_path(argv[0]); + + argc = parse_options(argc, argv, NULL, hash_object_options, + hash_object_usage, 0); if (write_object) { prefix = setup_git_directory();