You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Prevent reinitialization of existing ProllyTree stores (#100)
The init function in versioned_store.rs was creating a new store even when one already existed, potentially causing data loss. This fix adds a check for existing prolly config files before initialization.
Changes:
- Added check for prolly_config_tree_config and prolly_hash_mappings files in init()
- If either file exists, calls open() to load the existing store instead of creating a new one
- Added comprehensive test to verify the behavior
This ensures that repeatedly calling init on the same directory preserves existing data and doesn't create duplicate Initial commit entries.
Fixes the issue where init would overwrite an existing store configuration.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <[email protected]>
0 commit comments