{"thread":{"id":"53764","subject":"bug","startedAt":"2020-06-26T21:11:51Z","lastAt":"2020-06-29T18:49:22Z","messageCount":2,"participants":["Luke Knoble","Philippe Blain"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"400717","messageId":"CA+m5axz6QG5+AH5dB-J1dcD26z8z8uOUYUOgypu9kqoX49z0xA@mail.gmail.com","threadId":"53764","inReplyTo":null,"subject":"bug","fromName":"Luke Knoble","fromEmail":"lupeknoble@gmail.com","sentAt":"2020-06-26T21:11:37Z","receivedAt":"2020-06-26T21:11:51Z","isPatch":false,"sender":{"key":"lupeknoble@gmail.com","avatar":null},"body":"Howdy,\n\nI've found an issue in which I'm using this command:\n\ngit clone --recurse-submodules ssh://git@someurl:9999/someproject/repoX.git\n\ngit clones the repo successfully if I dont pass “git clone” any flags,\nbut gives me this error when I use “--recurse-submodules” and git\nattempts to clone a single submodule:\n\ngit@someurl: Permission denied (publickey).\nfatal: Could not read from remote repository.\nPlease make sure you have the correct access rights\nand the repository exists.\nfatal: clone of\n'ssh://git@someurl:9999/someproject/submodule_repo.git' into submodule\npath 'C:/someproject/submodule_repo' failed\n\nThe obvious answer is that my permissions are bad, but I can clone the\nsubmodule repo directly without issue.. This command succeeds:\n\ngit clone --recurse-submodules\nssh://git@someurl:9999/someproject/submodule_repo.git\n\nwhat gives git?\n"},{"id":"400743","messageId":"114B6FFA-134F-4024-BB66-797B4367C5E4@gmail.com","threadId":"53764","inReplyTo":"CA+m5axz6QG5+AH5dB-J1dcD26z8z8uOUYUOgypu9kqoX49z0xA@mail.gmail.com","subject":"Re: [BUG] SSH permission error doing `git clone --recurse-submodules <SSH url>` (was: \"bug\")","fromName":"Philippe Blain","fromEmail":"levraiphilippeblain@gmail.com","sentAt":"2020-06-29T18:08:37Z","receivedAt":"2020-06-29T18:49:22Z","isPatch":false,"sender":{"key":"levraiphilippeblain@gmail.com","avatar":"https://avatars.githubusercontent.com/u/44212482?v=4"},"body":"Hi Luke,\n\n> Le 26 juin 2020 à 17:11, Luke Knoble <lupeknoble@gmail.com> a écrit :\n> \n> Howdy,\n> \n> I've found an issue in which I'm using this command:\n> \n> git clone --recurse-submodules ssh://git@someurl:9999/someproject/repoX.git\n\nWhich version of Git ?\n\n> \n> git clones the repo successfully if I dont pass “git clone” any flags,\n\nDoes `git submodules update --init` then works ?\nCan you share `.gitmodules` ? (is the submodules recorded with an HTTP\nor SSH url in `.gitmodules` ?)\n\n> but gives me this error when I use “--recurse-submodules” and git\n> attempts to clone a single submodule:\n> \n> git@someurl: Permission denied (publickey).\n> fatal: Could not read from remote repository.\n> Please make sure you have the correct access rights\n> and the repository exists.\n> fatal: clone of\n> 'ssh://git@someurl:9999/someproject/submodule_repo.git' into submodule\n> path 'C:/someproject/submodule_repo' failed\n> \n> The obvious answer is that my permissions are bad, but I can clone the\n> submodule repo directly without issue.. This command succeeds:\n> \n> git clone --recurse-submodules\n> ssh://git@someurl:9999/someproject/submodule_repo.git\n\nInteresting. Could you retry your commands, prefixing them with `GIT_TRACE2=1 GIT_SSH_COMMAND=\"ssh -vvv\"` ?\n\nPhilippe.\n\n"}]}