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 the scraper.util.execute() function is checked and an error message is logged if it is not 0. Another logging message was changed from logging.debug() to logging.error() to reflect that a failure there impacts core functionality.
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: