From: Eric Sunshine Date: Mon, 03 May 2021 19:26:23 GMT Subject: Re: [PATCH v4 3/8] for-each-repo: run subcommands on configured repos Message-ID: In-Reply-To: On Mon, May 3, 2021 at 1:01 PM Eric Sunshine wrote: > for (i = 0; !result && i < values->nr; i++) { > const char *d = chdir(values->items[i].string); > if (chdir(d)) > die_errno(_("cannot chdir to '%s'"), d); > child.git_cmd = 1; > child.argv = argv; > result = run_command(&child); > } Without the copy/paste error, the declaration of `d` would, of course, be: const char *d = values->items[i].string;