git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Erik Haller <erik.haller@gmail.com>
To: git@vger.kernel.org
Subject: git with ssh won't pull submodule
Date: Thu, 27 Apr 2017 16:25:05 -0700	[thread overview]
Message-ID: <CAJRbB6w2BnXXzA46a-uzpx9u554GndEXxZtkLVTc5XOXMn3kkA@mail.gmail.com> (raw)

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

             reply	other threads:[~2017-04-27 23:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-27 23:25 Erik Haller [this message]
2017-04-28 15:45 ` git with ssh won't pull submodule Chris Packham
2017-04-29 22:23   ` Erik Haller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJRbB6w2BnXXzA46a-uzpx9u554GndEXxZtkLVTc5XOXMn3kkA@mail.gmail.com \
    --to=erik.haller@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).