From d1bb4cf695c8c9993311ff0fb0601c1710599067 Mon Sep 17 00:00:00 2001 From: Jahziah Wagner <540380+jahwag@users.noreply.github.com> Date: Thu, 12 Sep 2024 22:21:35 +0200 Subject: [PATCH 1/2] fix: exclude ~/.claudesync from _find_local_config_dir results --- pyproject.toml | 2 +- src/claudesync/configmanager/file_config_manager.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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 From d81d41e9befd060cb86ea431d287f06fd675a804 Mon Sep 17 00:00:00 2001 From: Jahziah Wagner <540380+jahwag@users.noreply.github.com> Date: Thu, 12 Sep 2024 22:50:42 +0200 Subject: [PATCH 2/2] feat(github): add CODEOWNERS file --- CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 CODEOWNERS 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