vermiculus / magithub

**DEPRECATED - please use Forge instead!** -- Magit-based interfaces to GitHub
GNU General Public License v3.0
579 stars 63 forks source link

magithub-github-repository-p only checks "origin" as the single possible GitHub remote name #121

Open whirm opened 7 years ago

whirm commented 7 years ago

It would be great if magithub checked all remotes, I often don't have an "origin" remote on local repos.

vermiculus commented 7 years ago

What kind of interface would be ideal? Consider the possibility that more than one remote could point to a repository (as is the case with fork; cf. #106).

Note also that the proxy functionality can already handle situations like this.

whirm commented 7 years ago

If magithub-ghub-repository-p doesn't find a remote named origin the whole functionality gets disabled. If all remotes where checked regardless of the name they have, then magithub could check which one is the original repo and which are forks. Although this is much more complicated than what you are doing now.

Maybe just being able to customize the upstream remote name would be enough? I usually name the upstream remote upstream and the other remotes with the github username of the repo they point to.