Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request fixes GitHub repository cloning so that it is functional again.
Per this blog post, and this blog post for background, GitHub has disabled the unencrypted Git protocol for cloning repositories. Since this project was not updated and is still using
git://
URLs to clone GitHub repositories it is unable to correctly work with them. Additionally it silently fails on this issue and unless SLOC/labor_hours are checked it runs with no error output.The repository cloning bug is resolved by using the
repository.clone_url
attribute to get an HTTPS URL to use for cloning. Additionally the return code of commands run with thescraper.util.execute()
function is checked and an error message is logged if it is not 0. Another logging message was changed fromlogging.debug()
tologging.error()
to reflect that a failure there impacts core functionality.Running against the
main
branch:Running against this branch without the repository URL fix:
Running against this branch: