X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-push.c;h=70b1168fa677fc889543e87b2a3f964b175375c6;hb=2603fa5fb358ee7834bc9e1a2e391f69d8fce815;hp=2b98ba32310810462151b233053b99b0b5ab627a;hpb=cc44c7655fe2dd0cfb46e841156634fe622df397;p=git.git diff --git a/builtin-push.c b/builtin-push.c index 2b98ba323..70b1168fa 100644 --- a/builtin-push.c +++ b/builtin-push.c @@ -149,10 +149,10 @@ static int get_remotes_uri(const char *repo, const char *uri[MAX_URI]) int is_refspec; char *s, *p; - if (!(-prefixcmp(buffer, "URL:"))) { + if (!prefixcmp(buffer, "URL:")) { is_refspec = 0; s = buffer + 4; - } else if (!(-prefixcmp(buffer, "Push:"))) { + } else if (!prefixcmp(buffer, "Push:")) { is_refspec = 1; s = buffer + 5; } else @@ -323,10 +323,10 @@ static int do_push(const char *repo) int dest_refspec_nr = refspec_nr; const char **dest_refspec = refspec; const char *dest = uri[i]; - const char *sender = "git-send-pack"; + const char *sender = "send-pack"; if (!prefixcmp(dest, "http://") || !prefixcmp(dest, "https://")) - sender = "git-http-push"; + sender = "http-push"; else if (thin) argv[dest_argc++] = "--thin"; argv[0] = sender; @@ -336,7 +336,7 @@ static int do_push(const char *repo) argv[dest_argc] = NULL; if (verbose) fprintf(stderr, "Pushing to %s\n", dest); - err = run_command_v(argv); + err = run_command_v_opt(argv, RUN_GIT_CMD); if (!err) continue; switch (err) {