Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

$ORIGIN is not determined on a per-branch basis #61

Open
stuartherbert opened this issue Oct 22, 2013 · 1 comment
Open

$ORIGIN is not determined on a per-branch basis #61

stuartherbert opened this issue Oct 22, 2013 · 1 comment
Labels
Milestone

Comments

@stuartherbert
Copy link
Collaborator

$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).

@ghost ghost assigned stuartherbert Oct 22, 2013
@ptescher
Copy link

Would be super happy to have this!

@stuartherbert stuartherbert removed their assignment Feb 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants