profclems / glab

The GitLab CLI tool. Archived: now officially adopted by GitLab as the official CLI tool and maintained at https://gitlab.com/gitlab-org/cli. See https://github.com/profclems/glab/issues/983

Home Page:https://glab.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Glab creates new remote on `glab mr checkout -t`

GordianDziwis opened this issue · comments

Discussed in #955

Originally posted by BonaBeavis February 12, 2022
The description says:

-t, --track set checked out branch to track remote branch, adds remote if needed

What does glab understand under "if needed"? Because in my setup it creates a new remote with my username as name.
But if I checkout a mr without the -t option and then setup the tracking with git push --set-upstream foo bar it works fine with the original repo.

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.