remote.c: hoist branch.*.remote lookup out of remote_get_1