X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=upload-pack.c;h=a49d87244706a4faacaadf7916ec86f2e2c0f04e;hb=3f7df3a71a9cbab3c27d84f2410e7d39407f9013;hp=5db6f939551dff618b9e4c7a8bbf5a51bfa3032f;hpb=1487eb68f7fd145151caa9a11ee00283629b75ef;p=git.git
diff --git a/upload-pack.c b/upload-pack.c
index 5db6f9395..a49d87244 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)
@@ -397,12 +397,11 @@ static int get_common_commits(void)
static char line[1000];
unsigned char sha1[20];
char hex[41], last_hex[41];
- int len;
save_commit_buffer = 0;
for(;;) {
- len = packet_read_line(0, line, sizeof(line));
+ int len = packet_read_line(0, line, sizeof(line));
reset_timeout();
if (!len) {
@@ -410,7 +409,7 @@ static int get_common_commits(void)
packet_write(1, "NAK\n");
continue;
}
- len = strip(line, len);
+ strip(line, len);
if (!prefixcmp(line, "have ")) {
switch (got_sha1(line+5, sha1)) {
case -1: /* they have what we do not */
@@ -645,7 +644,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"))