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

git with ssh won't pull submodule

From
EHErik Haller <erik.haller@gmail.com>
Date
Apr 27, 2017, 23:25 UTC
Message-ID
<CAJRbB6w2BnXXzA46a-uzpx9u554GndEXxZtkLVTc5XOXMn3kkA@mail.gmail.com>
Getting the following error for a submodule when using git/ssh:

$ git clone --recursive ssh://incense:/home/erik/git/nacl.git Cloning into 'nacl'... remote: Counting objects: 32, done. remote: Compressing objects: 100% (25/25), done. remote: Total 32 (delta 5), reused 0 (delta 0) Receiving objects: 100% (32/32), 16.50 KiB | 0 bytes/s, done. Resolving deltas: 100% (5/5), done. Submodule 'vendor/golang.org/x/crypto' (file:///home/erik/git/github.com/golang/crypto.git) registered for path 'vendor/golang.org/x/crypto' Cloning into '/home/erik/go/src/nacl/vendor/golang.org/x/crypto'... fatal: '/home/erik/git/github.com/golang/crypto.git' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'file:///home/erik/git/github.com/golang/crypto.git' into submodule path '/home/erik/go/src/nacl/vendor/golang.org/x/crypto' failed Failed to clone 'vendor/golang.org/x/crypto'. Retry scheduled Cloning into '/home/erik/go/src/nacl/vendor/golang.org/x/crypto'... fatal: '/home/erik/git/github.com/golang/crypto.git' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'file:///home/erik/git/github.com/golang/crypto.git' into submodule path '/home/erik/go/src/nacl/vendor/golang.org/x/crypto' failed Failed to clone 'vendor/golang.org/x/crypto' a second time, aborting

The git clone --recursive file:///home/erik/git/nacl.git works fine and pulls the submodule "crypto.git". Any ideas?

- The crypto.git is a valid repo.
- I have the correct permissions.
- The crypto.git repo is a git --mirror repo.

git version: 2.11.0 system: linux debian/testing

Next: Chris Packham
Message 1 of 3 in “git with ssh won't pull submodule”
  1. Erik HallerApr 27, 2017
  2. Chris PackhamApr 28, 2017
  3. Erik HallerApr 29, 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.