Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lab mr checkout -t (sometimes?) incorrectly sets up remotes #159

Closed
zaquestion opened this issue Jun 7, 2018 · 0 comments
Closed

lab mr checkout -t (sometimes?) incorrectly sets up remotes #159

zaquestion opened this issue Jun 7, 2018 · 0 comments
Labels
Milestone

Comments

@zaquestion
Copy link
Owner

zaquestion commented Jun 7, 2018

$ git mr checkout 1 -t
Updating nick
From gitlab.corp.tune.com:zaq/mr_assigner
 * [new branch]      master     -> nick/master
new remote: nick
From gitlab.corp.tune.com:zaq/mr_assigner
 * [new ref]         refs/merge-requests/1/head -> nick/weighted
fatal: A branch named 'weighted' already exists.
2018/06/06 18:34:04 mrCheckout.go:83: exit status 128

$ git pull nick weighted
fatal: Couldn't find remote ref weighted
fatal: The remote end hung up unexpectedly

$ git remote -v
nick    git@gitlab.com:zaq/mr_assigner.git (fetch)
nick    git@gitlab.com:zaq/mr_assigner.git (push)
origin  git@gitlab.com:zaq/mr_assigner.git (fetch)
origin  git@gitlab.com:zaq/mr_assigner.git (push)

The command should also be able to rerun and add the remote without causing an error.

@zaquestion zaquestion added the bug label Jun 7, 2018
@zaquestion zaquestion added this to the 0.12.0 milestone Jun 7, 2018
zaquestion added a commit that referenced this issue Jun 22, 2018
(fix) #159 by ensuring source project is used and add test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants