Skip to content

fix: replace panic in gitextractor with error handling#8386

Merged
klesh merged 3 commits into
apache:mainfrom
galachad:gitextract-panic
Apr 28, 2025
Merged

fix: replace panic in gitextractor with error handling#8386
klesh merged 3 commits into
apache:mainfrom
galachad:gitextract-panic

Conversation

@galachad
Copy link
Copy Markdown
Contributor

@galachad galachad commented Apr 16, 2025

Summary

Change panic into error logs.

Does this close any open issues?

Closes #8382

Other Information

I'm not fully sure that these changes are correct. It's my first PR to this repository, so kindly ask for the review. Thanks.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. component/plugins This issue or PR relates to plugins pr-type/refactor This PR refactors existing features labels Apr 16, 2025
@galachad galachad changed the title replace panic in gitextractor with error handling. fix: replace panic in gitextractor with error handling Apr 16, 2025
@klesh
Copy link
Copy Markdown
Contributor

klesh commented Apr 17, 2025

Thanks for putting up the PR.
Did you test it, did it work as you expected?

@galachad
Copy link
Copy Markdown
Contributor Author

Sorry I made a mistake, fixed.

@klesh
Copy link
Copy Markdown
Contributor

klesh commented Apr 21, 2025

No worry.
Did you test it on both empty and normal repos to verify if it is working as expected?

Copy link
Copy Markdown
Contributor

@klesh klesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contribution.

@klesh klesh merged commit 80d1377 into apache:main Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/plugins This issue or PR relates to plugins pr-type/refactor This PR refactors existing features size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][gitextract] crash when repository is empty

2 participants