X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=upload-pack.c;h=19c24db643c0bceb6e1b960d411d657d2feb0f32;hb=923cc82c481a99269d397dc86f8b664ba8cb98da;hp=e5adbc011e0ab71eeb06a42c4bd40cbea0bf3fa2;hpb=39a76bdd7de18b2bb2651dcb8136563df41e84f7;p=git.git diff --git a/upload-pack.c b/upload-pack.c index e5adbc011..19c24db64 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -11,7 +11,7 @@ #include "list-objects.h" #include "run-command.h" -static const char upload_pack_usage[] = "git-upload-pack [--strict] [--timeout=nn] "; +static const char upload_pack_usage[] = "git upload-pack [--strict] [--timeout=nn] "; /* bits #0..7 in revision.h, #8..10 in commit.c */ #define THEY_HAVE (1u << 11) @@ -616,6 +616,8 @@ int main(int argc, char **argv) int i; int strict = 0; + git_extract_argv0_path(argv[0]); + for (i = 1; i < argc; i++) { char *arg = argv[i];