Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

origin-local-checkout doesn't work with branches #515

Open
brenton opened this issue Nov 11, 2016 · 3 comments
Open

origin-local-checkout doesn't work with branches #515

brenton opened this issue Nov 11, 2016 · 3 comments

Comments

@brenton
Copy link
Contributor

brenton commented Nov 11, 2016

Neither of these commands result in the pre-flight-checks branch being checked out:

vagrant origin-local-checkout --repo openshift-ansible --user rhcarvalho --branch pre-flight-checks
vagrant origin-local-checkout --replace --repo openshift-ansible --user rhcarvalho --branch pre-flight-checks
@stevekuznetsov
Copy link
Contributor

@smarterclayton @danmcp I thought we had fixed that?

brenton added a commit to brenton/vagrant-openshift that referenced this issue Nov 11, 2016
@brenton
Copy link
Contributor Author

brenton commented Nov 11, 2016

fyi, that commit I added is just a hack workaround to explain the problem I'm seeing a little more. I'm not aware of how this problem may have come up or have been solved in the past.

brenton added a commit to brenton/vagrant-openshift that referenced this issue Nov 14, 2016
@brenton
Copy link
Contributor Author

brenton commented Nov 14, 2016

I suspect this behavior may have broken whenever the support for having an 'upstream' remote was added. git checkout <branch> is only equivalent to git checkout -b branch origin/<branch> if there is one remote. When I run vagrant origin-local-checkout --repo openshift-ansible --user rhcarvalho --branch pre-flight-checks I have a locally cloned repo with two remotes origin and upstream.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants