$ORIGIN is not determined on a per-branch basis
stuartherbert opened this issue · 1 comments
stuartherbert commented
$ORIGIN is a global variable, that is used extensively throughout the code. It is set exactly once, in hubflow_load_settings.
When working exclusively with GitHub, this is never a problem, as all branches use the same remote. But if you want to work in a peer-to-peer basis with your colleagues, this isn't safe, as each branch can legally have different remotes.
The fix is to replace $ORIGIN with $REMOTE, and have $REMOTE calculated on a per-branch basis. Some operations (which currently assume a single remote) might need fixing to work with any number of remotes (ie git hf update).
ptescher commented
Would be super happy to have this!