Conversation
This test reproduces GitHub issue #9169 where removing a remote does not properly clean up branch tracking information. After 'dolt remote remove origin', the status still shows tracking references to the removed remote. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
When removing a remote via 'dolt remote remove', the remote refs and remote entry were properly cleaned up, but branch configurations that tracked the removed remote were not updated. This caused 'dolt status' to still show tracking information for the removed remote. The fix adds logic to the dolt_remote SQL procedure to: 1. Find all branch configurations that reference the removed remote 2. Update those configurations to clear the remote field while preserving the head reference 3. Then proceed with the normal remote removal This ensures that after removing a remote, branches no longer show tracking status for the non-existent remote. Fixes #9169 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
@macneale4 DOLT
|
Contributor
|
@coffeegoddd DOLT
|
NathanGabrielson
approved these changes
May 28, 2025
Contributor
|
@macneale4 DOLT
|
|
@coffeegoddd DOLT
|
|
@coffeegoddd DOLT
|
|
@coffeegoddd DOLT
|
|
@coffeegoddd DOLT
|
|
@coffeegoddd DOLT
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When removing remote definitions, we now also remove the remote references from the branch specifications.
Fixes: #9169