]> git.ipfire.org Git - thirdparty/git.git/blobdiff - remote-curl.c
Merge branch 'ma/diff-doc-clarify-regexp-example'
[thirdparty/git.git] / remote-curl.c
index 350d92a074ed82a99060cebb1a4a3fb0a98cfd8e..8eb96152f51b641477c3b01bd62801d2bd2075eb 100644 (file)
@@ -1255,8 +1255,9 @@ static void parse_push(struct strbuf *buf)
        int ret;
 
        do {
-               if (starts_with(buf->buf, "push "))
-                       argv_array_push(&specs, buf->buf + 5);
+               const char *arg;
+               if (skip_prefix(buf->buf, "push ", &arg))
+                       argv_array_push(&specs, arg);
                else
                        die(_("http transport does not support %s"), buf->buf);