Coverage for src / repo_sync_kitty / git / operations.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2025-12-23 09:31 -0500

1"""Git operations using GitPython.""" 

2 

3from pathlib import Path 

4 

5 

6class RepoManager: 

7 """Manager for git repository operations.""" 

8 

9 def __init__(self, path: Path) -> None: 

10 """Initialize with repository path.""" 

11 self.path = path 

12 

13 def exists(self) -> bool: 

14 """Check if the repository exists.""" 

15 return (self.path / ".git").is_dir()