X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=upload-pack.c;h=e15ebdc287e9ed7b91677a2bb8cb13dfc1abe639;hb=2e2e91d6b27f522707322835a1f8c4a5e18a2419;hp=e5adbc011e0ab71eeb06a42c4bd40cbea0bf3fa2;hpb=caf8b2fbd4b49c66aa70624eaf35ebcdc007ad6d;p=git.git
diff --git a/upload-pack.c b/upload-pack.c
index e5adbc011..e15ebdc28 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];
@@ -643,7 +645,7 @@ int main(int argc, char **argv)
dir = argv[i];
if (!enter_repo(dir, strict))
- die("'%s': unable to chdir or not a git archive", dir);
+ die("'%s' does not appear to be a git repository", dir);
if (is_repository_shallow())
die("attempt to fetch/clone from a shallow repository");
if (getenv("GIT_DEBUG_SEND_PACK"))