diff options
Diffstat (limited to 'builtin/for-each-repo.c')
| -rw-r--r-- | builtin/for-each-repo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/builtin/for-each-repo.c b/builtin/for-each-repo.c index 6aeac37148..fd0e7739e6 100644 --- a/builtin/for-each-repo.c +++ b/builtin/for-each-repo.c @@ -45,14 +45,11 @@ int cmd_for_each_repo(int argc, const char **argv, const char *prefix) if (!config_key) die(_("missing --config=<config>")); - values = repo_config_get_value_multi(the_repository, - config_key); - /* * Do nothing on an empty list, which is equivalent to the case * where the config variable does not exist at all. */ - if (!values) + if (repo_config_get_value_multi(the_repository, config_key, &values)) return 0; for (i = 0; !result && i < values->nr; i++) |
