What's the API for getting that exact string? Only things I'm seeing is refSpecs stuff from either config or the remote itself.

I guess config is the place to check, right?