X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-push.c;h=979efcc45fca1a39b125e02d14b1f5d096f813ba;hb=d81bf827192f0af6b1cca64d2cdbaac9b5ca2020;hp=2b98ba32310810462151b233053b99b0b5ab627a;hpb=cc44c7655fe2dd0cfb46e841156634fe622df397;p=git.git diff --git a/builtin-push.c b/builtin-push.c index 2b98ba323..979efcc45 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