get_remote_group(): handle remotes with single-character names
commitc26f7d7b268c14f9ee7fa9cbeaad3bc890526d49
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 28 Jul 2015 21:08:18 +0000 (28 23:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jul 2015 21:39:10 +0000 (28 14:39 -0700)
tree2f18999443f5db110f860fe65bf23123f0aa96ee
parent9a3d637541a5b6fcd84b6f5fa057e597d1696460
get_remote_group(): handle remotes with single-character names

The code for splitting a whitespace-separated list of values in
"remotes.<name>" had an off-by-one error that caused it to skip over
remotes whose names consist of a single character.

Also remove unnecessary braces.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c