]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-helper.c
The sixth batch
[thirdparty/git.git] / transport-helper.c
index a46afcb69db615d2f8917f852db28c3dca501de0..93a6f507936348e3b2eb43f06663725540646441 100644 (file)
@@ -410,10 +410,11 @@ static int fetch_with_fetch(struct transport *transport,
                        exit(128);
 
                if (skip_prefix(buf.buf, "lock ", &name)) {
-                       if (transport->pack_lockfile)
+                       if (transport->pack_lockfiles.nr)
                                warning(_("%s also locked %s"), data->name, name);
                        else
-                               transport->pack_lockfile = xstrdup(name);
+                               string_list_append(&transport->pack_lockfiles,
+                                                  name);
                }
                else if (data->check_connectivity &&
                         data->transport_options.check_self_contained_and_connected &&