Setting the first part of the cloned URI would make the code a lot cleaner and thus easier to maintain. The only thing that is different is `https://github.com/` vs `git@github.com:`. How about setting this when we check for successful ssh authentication, something along the lines: `clone_url_type="git@github.com:"` if ssh auth is successful, `clone_url_type="https://github.com/"` otherwise.