connect.c: teach get_remote_heads to parse "shallow" lines