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

Can't delete remote branch refs that no longer exist in origin #8734

Closed
ricardoreiter opened this issue Jan 13, 2025 · 3 comments
Closed

Can't delete remote branch refs that no longer exist in origin #8734

ricardoreiter opened this issue Jan 13, 2025 · 3 comments
Assignees

Comments

@ricardoreiter
Copy link

I have a clone that has refs in dolt_remote_branches to old branches that no longer exist in the remote. The only way to remove them from dolt_remote_branches seems to be removing the remote with dolt_remote('remove', 'origin') and adding it back again.
I've tried the following:

call dolt_branch('-d', 'branch')
call dolt_branch('-d', 'origin/branch')
call dolt_branch('-d', 'remotes/origin/branch')
@ricardoreiter
Copy link
Author

it seems like dolt_fetch('origin', '--prune') works, but dolt_pull('origin', '--prune') doesn't

@macneale4
Copy link
Contributor

TO FIX:

  • Add documentation for the --prune option in the dolt_fetch procedure.
  • Add support for --prune to dolt_pull

@macneale4
Copy link
Contributor

Documentation added for the new flag in the procedures doc. Thanks for the heads up @ricardoreiter !

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

No branches or pull requests

3 participants