X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=ssh-push.c;h=5bd4569974c3c6851feb006a838fe69769388673;hb=89bc8c785e20258efba3b2b5ffc26098fa0b8bc8;hp=aac70af514e0dc5507fa4997ebad54352c973215;hpb=07ee0d77c66d6f356cd3f82435e67510779aa53c;p=git.git diff --git a/ssh-push.c b/ssh-push.c index aac70af5..5bd45699 100644 --- a/ssh-push.c +++ b/ssh-push.c @@ -96,7 +96,7 @@ static void service(int fd_in, int fd_out) { } while (1); } -static const char *ssh_push_usage = +static const char ssh_push_usage[] = "git-ssh-push [-c] [-t] [-a] [-w ref] commit-id url"; int main(int argc, char **argv) @@ -105,10 +105,12 @@ int main(int argc, char **argv) char *commit_id; char *url; int fd_in, fd_out; - const char *prog = getenv("GIT_SSH_PULL") ? : "git-ssh-pull"; + const char *prog; unsigned char sha1[20]; char hex[41]; + prog = getenv("GIT_SSH_PULL"); + if (!prog) prog = "git-ssh-pull"; while (arg < argc && argv[arg][0] == '-') { if (argv[arg][1] == 'w') arg++;