persistent-https, url insteadof, and `git submodule`
- From
Elliott Cable <me@ell.io>
- Date
- May 19, 2017, 19:57 UTC
- Message-ID
- <CAPZ477MCsBsfbqKzp69MT_brwz-0aes6twJofQrhizUBV7ZoeA@mail.gmail.com>
Set up `persistent-https` as described in the [README][]; including the ‘rewrite https urls’ feature in `.gitconfig`:
[url "persistent-https"]
insteadof = https
[url "persistent-http"]
insteadof = httpUnfortunately, this breaks `git submodule add`:
> git submodule add https://github.com/nodenv/nodenv.git \
./Vendor/nodenv
Cloning into '/Users/ec/Library/System Repo/Vendor/nodenv'...
fatal: transport 'persistent-https' not allowed
fatal: clone of 'https://github.com/nodenv/nodenv.git' into
submodule path '/Users/ec/Library/System Repo/Vendor/nodenv' failedPresumably this isn't intended behaviour?
[README]: <https://github.com/git/git/tree/master/contrib/persistent-https#readme>
⁓ ELLIOTTCABLE — fly safe. http://ell.io/tt