#0005 Git Repository Access #124
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/hottea!124
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/0005-git-repository-access"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements core git repository access module.
Changes:
src/hottea/exceptions.py— custom GitRepoError hierarchysrc/hottea/git.py— git repo access: config parsing, repo discovery, fsck validation, GitPython wrappertests/conftest.py— fixtures for git/non-git temp dirstests/test_git.py— 12 tests covering config, discovery, validation, error pathsCloses: #0005, #0001, #0002, #0003, #0004
Audit Review — PR #124
Solid implementation of the git repository access module. Clean code, good test coverage (12 tests), proper exception hierarchy, and thorough edge case handling. The corrupted repo test is particularly well done.
Suggestions
src/hottea/git.py:11-14— Module-levelshutil.which("git")raisesGitNotFoundErrorat import time if git is missing. Should be lazy-initialized to avoid breaking imports in git-less environments. Filed as #125.src/hottea/exceptions.py—GitConfigErroris defined but never raised.get_user_name()/get_user_email()letsubprocess.CalledProcessErrorpropagate instead. Either remove it or wrap config failures. Filed as #126.tests/conftest.py—non_git_dirandempty_dirfixtures are functionally identical. Consider consolidating. Filed as #127.Summary
Result: COMMENT — 3 non-blocking suggestions filed as issues.
APPROVED. Solid git module implementation with good test coverage. Non-blocking suggestions in #125, #126, #127 — address at your leisure.