diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-02-27 00:37:09 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-27 00:37:09 +0300 |
commit | ae2f25542ffdd1919b33c8f274f8172e49d64dbf (patch) | |
tree | 0ab622542d3787b56ac6aae7b9d4f3977a701e7a /builtin/fetch.c | |
parent | 56f37fda511e1615dc6df86c68f3b841711a7828 (diff) | |
parent | a31eeae27f38246ba35000fa603d884cdd1a81ae (diff) |
Merge branch 'tg/git-remote'
The internal API to interact with "remote.*" configuration
variables has been streamlined.
* tg/git-remote:
remote: use remote_is_configured() for add and rename
remote: actually check if remote exits
remote: simplify remote_is_configured()
remote: use parse_config_key
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r-- | builtin/fetch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 55919a9e4f..48c45ea5e3 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -1022,10 +1022,9 @@ static int add_remote_or_group(const char *name, struct string_list *list) git_config(get_remote_group, &g); if (list->nr == prev_nr) { - struct remote *remote; - if (!remote_is_configured(name)) + struct remote *remote = remote_get(name); + if (!remote_is_configured(remote)) return 0; - remote = remote_get(name); string_list_append(list, remote->name); } return 1; |