]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-helper.c
The second batch post 2.26 cycle
[thirdparty/git.git] / transport-helper.c
index 413d9d873e8623ac40ee3c5912d80d5fb2534722..20a7185ec40e1cf4612c259019f325208632373b 100644 (file)
@@ -404,11 +404,12 @@ static int fetch_with_fetch(struct transport *transport,
        sendline(data, &buf);
 
        while (1) {
+               const char *name;
+
                if (recvline(data, &buf))
                        exit(128);
 
-               if (starts_with(buf.buf, "lock ")) {
-                       const char *name = buf.buf + 5;
+               if (skip_prefix(buf.buf, "lock ", &name)) {
                        if (transport->pack_lockfile)
                                warning(_("%s also locked %s"), data->name, name);
                        else