git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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 = http
Unfortunately, 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' failed
Presumably this isn't intended behaviour?
   [README]: <https://github.com/git/git/tree/master/contrib/persistent-https#readme>
⁓ ELLIOTTCABLE — fly safe.
  http://ell.io/tt
Next: Dennis Kaarsemaker
Message 1 of 10 in “persistent-https, url insteadof, and `git submodule`”
  1. Elliott CableMay 19, 2017
  2. Dennis KaarsemakerMay 19, 2017
  3. Dennis KaarsemakerMay 19, 2017
  4. Jeff KingMay 20, 2017
  5. Elliott CableMay 26, 2017
  6. Jeff KingMay 31, 2017
  7. Ævar Arnfjörð BjarmasonMay 31, 2017
  8. Jeff KingMay 31, 2017
  9. docs/config: mention protocol implications of url.insteadOfJeff King, May 31, 2017
  10. Brandon WilliamsJun 1, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.