-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update git_refs.go #1240
Update git_refs.go #1240
Conversation
Fix a segfault when fetching refs from github returns an error (say due to connectivity)
github client returns a response _and_ error when the status code is 404 (in contrast to the standard http.Client)
be consistent with other parts of the github client returning the response && error
Fix syntax error and remind self to stop using GitHub editor
Codecov Report
@@ Coverage Diff @@
## master #1240 +/- ##
=======================================
Coverage 73.36% 73.36%
=======================================
Files 86 86
Lines 6026 6026
=======================================
Hits 4421 4421
Misses 836 836
Partials 769 769
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thank you, @dprotaso! I'm surprised this was not caught months ago.
LGTM.
Awaiting second LGTM before merging.
Note to self - this will be a semver minor version bump due to the bug fix.
@gmlewis I was only playing with this part of the API - so there may be similar issues in other calls? Also feel free to squash the commits on merge :) |
Thank you, @gauntface! |
Fix a segfault when fetching refs from github returns an error (say due to connectivity)