diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..b8cd134 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,2 @@ +# Default owner for everything in the repo +* @jahwag diff --git a/pyproject.toml b/pyproject.toml index 285a723..facda6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "claudesync" -version = "0.5.6" +version = "0.5.7" authors = [ {name = "Jahziah Wagner", email = "jahziah.wagner+pypi@gmail.com"}, ] diff --git a/src/claudesync/configmanager/file_config_manager.py b/src/claudesync/configmanager/file_config_manager.py index 0e7c7c6..38d5d8e 100644 --- a/src/claudesync/configmanager/file_config_manager.py +++ b/src/claudesync/configmanager/file_config_manager.py @@ -57,17 +57,19 @@ def _find_local_config_dir(self, max_depth=100): Finds the nearest directory containing a .claudesync folder. Searches from the current working directory upwards until it finds a .claudesync folder - or reaches the root directory. + or reaches the root directory. Excludes the ~/.claudesync directory. Returns: Path: The path containing the .claudesync folder, or None if not found. """ current_dir = Path.cwd() root_dir = Path(current_dir.root) + home_dir = Path.home() depth = 0 # Initialize depth counter while current_dir != root_dir: - if (current_dir / ".claudesync").is_dir(): + claudesync_dir = current_dir / ".claudesync" + if claudesync_dir.is_dir() and claudesync_dir != home_dir / ".claudesync": return current_dir current_dir = current_dir.parent