Bug fix for dolt_commit leaving a dirty working set

This commit is contained in:
Zach Musgrave
2023-03-23 11:31:32 -07:00
parent 24625ae9bf
commit bdc20bfd77
@@ -191,6 +191,10 @@ func doltCommit(ctx *sql.Context,
if err != nil {
return nil, nil, err
}
// We also need to update the working set to reflect the new staged root value
workingSet = workingSet.WithStagedRoot(pending.Roots.Staged)
logrus.Tracef("staged and HEAD merge took %s", time.Since(start))
}
}