Closed twaldear closed 6 years ago
hey @austinbyers after going thru the unit tests i realized that my logic was slightly wrong.
an https url would produce:
https://github.com/test-user1/test-repo1 -> github.com/test-user1/test-repo1
but a ssh url would produce
git@github.com:test-user3/test-repo3 -> github.com:test-user3/test-repo3
i updated the code with a conditional to account for the :
in ssh urls and pushed the updated unit test up as well
clone_rules.py allows for git ssh urls, but fails when trying to create the target_repo_root variable on ssh urls because it only splits on
\\
to: @airbnb/binaryalert-maintainers size: small resolves #123
Background
See issue for stacktrace
Changes
Testing
I ran it locally with both https and ssh urls and confirmed they both work