summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-07-01 10:51:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-01 19:32:22 (GMT)
commitbc40dfb10a06612813a3f9b733d65af0732208b2 (patch)
tree5b8b6a53a70365d72762b7181ed4bb108e6ffea4 /transport.c
parent770fedaf9fb156bd8c18da41770eac0cb63fba63 (diff)
downloadgit-bc40dfb10a06612813a3f9b733d65af0732208b2.zip
git-bc40dfb10a06612813a3f9b733d65af0732208b2.tar.gz
git-bc40dfb10a06612813a3f9b733d65af0732208b2.tar.bz2
string-list.h users: change to use *_{nodup,dup}()
Change all in-tree users of the string_list_init(LIST, BOOL) API to use string_list_init_{nodup,dup}(LIST) instead. As noted in the preceding commit let's leave the now-unused string_list_init() wrapper in-place for any in-flight users, it can be removed at some later date. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index 6cf3da1..7ee11e9 100644
--- a/transport.c
+++ b/transport.c
@@ -1050,7 +1050,7 @@ struct transport *transport_get(struct remote *remote, const char *url)
struct transport *ret = xcalloc(1, sizeof(*ret));
ret->progress = isatty(2);
- string_list_init(&ret->pack_lockfiles, 1);
+ string_list_init_dup(&ret->pack_lockfiles);
if (!remote)
BUG("No remote provided to transport_get()");