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

dolt clone -branch should omit remote tracking branches for other branches #3873

Closed
fulghum opened this issue Jul 20, 2022 · 1 comment · Fixed by #7088
Closed

dolt clone -branch should omit remote tracking branches for other branches #3873

fulghum opened this issue Jul 20, 2022 · 1 comment · Fixed by #7088
Labels
cli good first issue Good for newcomers

Comments

@fulghum
Copy link
Contributor

fulghum commented Jul 20, 2022

Currently, when you clone a single branch from a Dolt database, you get only that single branch, but you still get remote tracking branches for the other branches in the remote database. To follow Git's semantics, we should not be creating those remote tracking branches for other branches.

@fulghum fulghum added the good first issue Good for newcomers label Jul 20, 2022
@tanyongzhi
Copy link
Contributor

I would like to work on this issue. However, I'm a little confused with the comparison to Git. In Git, a command like git clone -b will also result in remote-tracking branches (viewable using git branch -r) being created. The same behavior happens for Dolt, when we can list the remote-tracking branches using dolt branch -r.

Can you please clarify the expected behavior that the PR resolving this issue should accomplish? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants