summaryrefslogtreecommitdiff
path: root/builtin/remote.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-08-11 04:52:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-08-11 04:52:36 (GMT)
commitb0fd38a5159f3cf5dfcb40776c863d42b695491a (patch)
tree3fd6a82c81cbc784d6ded7a028fbd3ee3a3324cf /builtin/remote.c
parent3f4fa1fab8092c587960b5e8323e4b84630a064d (diff)
parent1e11fab59c71d191970233cf8c2f573458ed952c (diff)
downloadgit-b0fd38a5159f3cf5dfcb40776c863d42b695491a.zip
git-b0fd38a5159f3cf5dfcb40776c863d42b695491a.tar.gz
git-b0fd38a5159f3cf5dfcb40776c863d42b695491a.tar.bz2
Merge branch 'jc/string-list-cleanup' into maint
Code clean-up. source: <xmqq7d471dns.fsf@gitster.g> * 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 d4b69fe..a3a0c27 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -1222,10 +1222,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) {