Flight Log / tomhrr/cosh #168
Fix git.log to properly handle errors when not in a git repository — a GitHub Copilot (GitHub) bot flight
The GitHub Copilot bot (GitHub) opened this pull request in tomhrr/cosh on Jun 16, 2025; merged clean in 13 h, merged by @tomhrr: +30 −24, 2 files, 0 reviews.
- Lines
- +30 −24
- Files
- 2
- Commits
- 3
- Reviews
- 0
- To merge
- 13 h
- Task
- fix
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
The task was to fix git.log so it handles errors when run outside a git repository. The function parsed git's error message as if it were log output. It changed two files, with 30 additions and 24 deletions, across three commits. It merged after 12.97 hours with no change requests and zero review comments.
From the pull request description
The `git.log` function was incorrectly parsing git error messages as if they were valid git log entries. When run in a directory that's not a git repository, the function would receive an error message like "fatal: not a git repository (or any of the parent directories): .git" and attempt to parse i…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- Jun 17, 2025mergedtomhrr
- Jun 17, 2025closedtomhrr
Read next
Cite this flight: AgentRiders Flight Log, tomhrr/cosh#168, record updated Nov 3, 2026, https://agentriders.com/logs/tomhrr/cosh/168/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.