Skip to content

Commit bc598c3

Browse files
mhaggergitster
authored andcommitted
get_remote_group(): use skip_prefix()
Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5f65499 commit bc598c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/fetch.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,8 +973,7 @@ static int get_remote_group(const char *key, const char *value, void *priv)
973973
{
974974
struct remote_group_data *g = priv;
975975

976-
if (starts_with(key, "remotes.") &&
977-
!strcmp(key + 8, g->name)) {
976+
if (skip_prefix(key, "remotes.", &key) && !strcmp(key, g->name)) {
978977
/* split list by white space */
979978
while (*value) {
980979
size_t wordlen = strcspn(value, " \t\n");

0 commit comments

Comments
 (0)