X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=connect.c;h=d51d1066330f547e336038fad1c5d43c90e28171;hp=06e88b0705f7fbd138e504920c20c70218121696;hb=59556548230e617b837343c2c07e357e688e2ca4;hpb=956623157f828b2b4fd91a9bc5e78ba8e42437d9 diff --git a/connect.c b/connect.c index 06e88b0705..d51d106633 100644 --- a/connect.c +++ b/connect.c @@ -145,7 +145,7 @@ struct ref **get_remote_heads(int in, char *src_buf, size_t src_len, if (!len) break; - if (len > 4 && !prefixcmp(buffer, "ERR ")) + if (len > 4 && starts_with(buffer, "ERR ")) die("remote error: %s", buffer + 4); if (len < 42 || get_sha1_hex(buffer, old_sha1) || buffer[40] != ' ')