tg: disambiguate refs/heads/refs/remotes/<name>/<branch>