summaryrefslogtreecommitdiffstats
path: root/builtin/remote.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-08-03 22:36:09 +0200
committerJunio C Hamano <gitster@pobox.com>2022-08-03 22:36:09 +0200
commit30c6495e1ed09368ed0e3cca2758d3c886bd8c6b (patch)
treefbe65b9383ccbd2f71f1ed86febbf753e898eb50 /builtin/remote.c
parentMerge branch 'en/merge-restore-to-pristine' (diff)
parentbuiltin/remote.c: use the right kind of STRING_LIST_INIT (diff)
downloadgit-30c6495e1ed09368ed0e3cca2758d3c886bd8c6b.tar.xz
git-30c6495e1ed09368ed0e3cca2758d3c886bd8c6b.zip
Merge branch 'jc/string-list-cleanup'
Code clean-up. * jc/string-list-cleanup: builtin/remote.c: use the right kind of STRING_LIST_INIT
Diffstat (limited to 'builtin/remote.c')
-rw-r--r--builtin/remote.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index d9b8746cb3..c713463d89 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -1229,10 +1229,9 @@ static int get_one_entry(struct remote *remote, void *priv)
static int show_all(void)
{
- struct string_list list = STRING_LIST_INIT_NODUP;
+ struct string_list list = STRING_LIST_INIT_DUP;
int result;
- list.strdup_strings = 1;
result = for_each_remote(get_one_entry, &list);
if (!result) {