jhult opened a new pull request, #260: URL: https://github.com/apache/skywalking-eyes/pull/260
## Summary - Catch `plumbing.ErrObjectNotFound` error when go-git fails to read git objects during file iteration - Provide helpful diagnostic message suggesting `git fsck` to diagnose the issue - Suggest cleanup command (`git prune && git gc --prune=now --aggressive`) if dangling objects are found ## Problem When a git repository has dangling objects, go-git's `tree.Files().ForEach()` fails with `ErrObjectNotFound`, resulting in an unhelpful error message "object not found" that doesn't guide users to a solution. ## Solution Added error handling to catch `ErrObjectNotFound` specifically and provide actionable guidance to diagnose and fix the issue. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
