Re: [PATCH v4 3/8] for-each-repo: run subcommands on configured repos
On Mon, May 3, 2021 at 1:01 PM Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 8 quoted lines
> 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;