X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=upload-pack.c;h=f05e4229d0d3a3ed34b4bba6636f4d333c74dc22;hb=385cc9d8c44eb5be9d57e630129752a72c0a08c8;hp=fc79ddef255a49176acab52c6492c1086b4e6e44;hpb=e40b34b1ec2c91aaed5572116cd8d01afff7851f;p=git.git diff --git a/upload-pack.c b/upload-pack.c index fc79ddef2..f05e4229d 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=] "; /* bits #0..7 in revision.h, #8..10 in commit.c */ #define THEY_HAVE (1u << 11) @@ -482,7 +482,7 @@ static int get_common_commits(void) static void receive_needs(void) { - struct object_array shallows = {0, 0, NULL}; + struct object_array shallows = OBJECT_ARRAY_INIT; static char line[1000]; int len, depth = 0;