Re: [PATCHv2 5/5] builtin-remote: Make "remote -v" display push urls
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 14, 2009, 05:54 UTC
- Message-ID
- <7vprd7s6lf.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1244910551-4420-3-git-send-email-git@drmicha.warpmail.net>
Thanks, will replace with these two and merge to 'next'.
I'll squash this in to [5/5], which is the same fix-up as I queued the previous round to 'pu', to avoid decl-after-statement, by the way.
builtin-remote.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/builtin-remote.c b/builtin-remote.c index f377722..3f6f5c2 100644 --- a/builtin-remote.c +++ b/builtin-remote.c @@ -1311,8 +1311,10 @@ static int get_one_entry(struct remote *remote, void *priv) static int show_all(void) { struct string_list list = { NULL, 0, 0 }; + int result; + list.strdup_strings = 1; - int result = for_each_remote(get_one_entry, &list); + result = for_each_remote(get_one_entry, &list); if (!result) { int i;