Commit 1fb6b95
fix(dolt): auto-commit pending changes before pull to prevent merge errors (GH#2474)
Store initialization (schema init, molecule loading, metadata writes) can dirty
the working set before the user's pull command runs. Dolt refuses to merge with
uncommitted changes, causing 'cannot merge with uncommitted changes' errors.
Repeated failed attempts can corrupt Dolt journals in server mode.
Fix: auto-commit any pending changes before executing pull in both Pull() and
PullFrom(). Uses existing Commit() which gracefully handles 'nothing to commit'
when the working set is already clean.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8386380 commit 1fb6b95
2 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1491 | 1491 | | |
1492 | 1492 | | |
1493 | 1493 | | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
1494 | 1508 | | |
1495 | 1509 | | |
1496 | 1510 | | |
| |||
0 commit comments