tech-debt: Fix git command stderr handling design #312

Open
opened 2026-05-31 14:10:36 +00:00 by jmiller · 0 comments
Owner

Summary

Git command error handling puts stderr into error messages which is fragile and a bad design.

Locations

  • modules/git/gitcmd/error.go:27 - GIT-CMD-STDERR: stderr should not be in error message
  • modules/git/catfile_batch.go:34-36 - design fragile, needs refactoring
  • modules/git/parse_treeentry.go:16 - function design is not right
  • modules/git/repo_branch_gogit.go:18,32 - inconsistent behavior with nogogit edition

Action Required

Refactor git command error handling to separate stderr from error messages. Fix gogit/nogogit inconsistencies.


Created by Claude Opus 4.6

## Summary Git command error handling puts stderr into error messages which is fragile and a bad design. ## Locations - `modules/git/gitcmd/error.go:27` - GIT-CMD-STDERR: stderr should not be in error message - `modules/git/catfile_batch.go:34-36` - design fragile, needs refactoring - `modules/git/parse_treeentry.go:16` - function design is not right - `modules/git/repo_branch_gogit.go:18,32` - inconsistent behavior with nogogit edition ## Action Required Refactor git command error handling to separate stderr from error messages. Fix gogit/nogogit inconsistencies. --- *Created by Claude Opus 4.6*
jmiller added the tech-debtupstream labels 2026-05-31 14:10:36 +00:00
Sign in to join this conversation.
No labels tech-debt upstream
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#312