Skip to content

Bug fix: ensure dolt_checkout() initializes a branch's working set#9648

Merged
fulghum merged 1 commit intomainfrom
fulghum/checkout_ws_init
Aug 8, 2025
Merged

Bug fix: ensure dolt_checkout() initializes a branch's working set#9648
fulghum merged 1 commit intomainfrom
fulghum/checkout_ws_init

Conversation

@fulghum
Copy link
Contributor

@fulghum fulghum commented Aug 8, 2025

dolt_checkout() already had logic to initialize a branch's working set if one was not available, but the error it expected to see to trigger that logic was not being returned by the functions it called. This changes the checkoutExistingBranch() function so that it also resolves the working set for that branch and returns a doltdb.ErrWorkingSetNotFound error if the working set is not available.

@fulghum fulghum force-pushed the fulghum/checkout_ws_init branch from a422803 to 092545d Compare August 8, 2025 02:26
@coffeegoddd
Copy link
Contributor

@fulghum DOLT

comparing_percentages
100.000000 to 100.000000
version result total
092545d ok 5937457
version total_tests
092545d 5937457
correctness_percentage
100.0

@dolthub dolthub deleted a comment from coffeegoddd Aug 8, 2025
@fulghum fulghum requested a review from macneale4 August 8, 2025 18:03
Copy link
Contributor

@macneale4 macneale4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fulghum fulghum merged commit d02b2c7 into main Aug 8, 2025
22 of 23 checks passed
@Hydrocharged Hydrocharged deleted the fulghum/checkout_ws_init branch December 15, 2025 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants