X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=ssh-push.c;h=5bd4569974c3c6851feb006a838fe69769388673;hb=2ab141a26f93c4d97e243a6be8a38a7dd4eb35a3;hp=aac70af514e0dc5507fa4997ebad54352c973215;hpb=98e031f0bb6e857c684e6db24d03d22cfc1a532a;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++;