From bc598c32ae41cd355169ca7b207c2e35d9449232 Mon Sep 17 00:00:00 2001 From: Michael Haggerty Date: Tue, 28 Jul 2015 23:08:21 +0200 Subject: get_remote_group(): use skip_prefix() Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- builtin/fetch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin/fetch.c b/builtin/fetch.c index bbc2bb8859..262809c787 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -973,8 +973,7 @@ static int get_remote_group(const char *key, const char *value, void *priv) { struct remote_group_data *g = priv; - if (starts_with(key, "remotes.") && - !strcmp(key + 8, g->name)) { + if (skip_prefix(key, "remotes.", &key) && !strcmp(key, g->name)) { /* split list by white space */ while (*value) { size_t wordlen = strcspn(value, " \t\n"); -- cgit v1.2.1