mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
b70cba82ff
Previously `convert_bmignore_to_rclone_filters()` had two bugs: 1. Patterns without wildcards (e.g. `config.json`) were emitted as `- config.json/**`, which only excludes contents of a *directory* named config.json — the actual file passed through unfiltered. 2. Wildcard-only patterns (e.g. `.*`) were emitted as `- .*` alone. rclone globs treat `*` as not crossing `/`, so hidden directory contents (e.g. `.obsidian/workspace.json`) were not excluded. Fix: always emit both `- pattern` (match the item itself) and `- pattern/**` (match directory contents recursively) for every gitignore line, unless it already ends with `/**`. Closes #819 Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com> Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>