card.io-iOS-source icon indicating copy to clipboard operation
card.io-iOS-source copied to clipboard

Use HTTPS URL for submodule to allow read access for non GH users

Open Johennes opened this issue 8 years ago • 2 comments
trafficstars

This is required to be able to clone the repository and its submodules without having a GitHub account. An example use case is consuming card.io through carthage to build an iOS application within a large team of engineers where people simply cannot be required to sign up for GitHub and upload their SSH key just to build the app.

See also https://github.com/Carthage/Carthage/issues/1865

Johennes avatar Apr 05 '17 12:04 Johennes

Thanks for the pull request. This has been discussed fairly extensively in the past, but my search fu is failing me. There are benefits to both ssh and https. If you need https, you can use git's insteadof support: https://stackoverflow.com/questions/1722807/git-convert-git-urls-to-http-urls.

josharian avatar Apr 05 '17 13:04 josharian

Thanks for the pointer. So putting this into my global .gitconfig

[url "https://github.com/card-io/card.io-dmz.git"]
    insteadOf = [email protected]:card-io/card.io-dmz.git

indeed makes card.io work with carthage. I still think it would be nice if no additional setup was required just for consuming the framework but I'm fine with this if SSH brings benefits in other use cases. :)

Johennes avatar Apr 05 '17 14:04 Johennes