You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 25, 2020. It is now read-only.
I have checkouts where frequently the remote I want to use is not called origin. Sometimes the repo has multiple remotes (none called origin), sometimes I have one remote (not called origin).
I would suggest that wstool should dwim in those situtations, where user intent can be deduced.
E.g. a heuristic could be:
if there is only one remote, use that, no matter what it is called
if there are multiple remotes, and the local branch specified as the to-be-used version has a default remote, then use that remote
otherwise, if one remote is called origin, use that
It seems like the remote name
originis hardcoded, e.g. here: https://github.com/vcstools/vcstools/blob/768f477a17e45cde8b57baed84e7661f601b73aa/src/vcstools/git.py#L155I have checkouts where frequently the remote I want to use is not called origin. Sometimes the repo has multiple remotes (none called origin), sometimes I have one remote (not called origin).
I would suggest that wstool should dwim in those situtations, where user intent can be deduced.
E.g. a heuristic could be: