get_remote_group(): use skip_prefix()
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael Haggerty committed
Jul 28, 2015 at 23:08 UTC
bc598c32ae41cd355169ca7b207c2e35d9449232
1 file changed
+1
-2
builtin/fetch.c
+1
-2
@@ -973,8 +973,7 @@ static int get_remote_group(const char *key, const char *value, void *priv)
973
{
974
struct remote_group_data *g = priv;
975
976
- if (starts_with(key, "remotes.") &&
977
- !strcmp(key + 8, g->name)) {
976
+ if (skip_prefix(key, "remotes.", &key) && !strcmp(key, g->name)) {
977
/* split list by white space */
978
while (*value) {
979
size_t wordlen = strcspn(value, " \t\n");