]> git.ipfire.org Git - thirdparty/git.git/blobdiff - connect.c
replace {pre,suf}fixcmp() with {starts,ends}_with()
[thirdparty/git.git] / connect.c
index 06e88b0705f7fbd138e504920c20c70218121696..d51d1066330f547e336038fad1c5d43c90e28171 100644 (file)
--- 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] != ' ')