-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
Git-related exceptions are silently swallowed with pass, making it difficult to debug why git operations might not be working.
File to update
src/blogtuner/utils/git.py
Current code (lines 30-31)
except (git.InvalidGitRepositoryError, git.NoSuchPathError, ValueError):
pass # Not a git repo or file not trackedProposed change
except (git.InvalidGitRepositoryError, git.NoSuchPathError, ValueError) as e:
logger.debug(f"Not using git mv (reason: {e}), falling back to regular rename")Rationale
- Debug-level logging provides visibility without cluttering normal output
- Helps diagnose unexpected behavior when git operations silently fall back
- Maintains current functionality while improving observability
Priority
Low
Metadata
Metadata
Assignees
Labels
No labels