Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-08-03 23:36:09 +0300
committerJunio C Hamano <gitster@pobox.com>2022-08-03 23:36:09 +0300
commit30c6495e1ed09368ed0e3cca2758d3c886bd8c6b (patch)
treefbe65b9383ccbd2f71f1ed86febbf753e898eb50 /builtin/remote.c
parent966ff64a3042f879bca83e2376128cf5f39737a7 (diff)
parent1e11fab59c71d191970233cf8c2f573458ed952c (diff)
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) {