If the remote supports the symref protocol extension, then we return that, otherwise we guess with git's rules.