checkout icon indicating copy to clipboard operation
checkout copied to clipboard

submodules=false not working

Open hardfist opened this issue 4 years ago • 2 comments

It seems that submodule=false not working in my project

image

here is my setting image

hardfist avatar Jan 21 '22 15:01 hardfist

Are you sure it checks it out?

/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || ...

that looks like configuring each submodule, but not necessarily checking it out?

zerothi avatar Feb 04 '22 11:02 zerothi

In my case, I have private submodules. I want to avoid setting up authentication for CI, so I set submodules: false. I'm seeing a failure to clone submodules despite this setting the value to false. Maybe based on @zerothi's comment that's expected behavior, but I found it counterintuitive, and it leaves me with no option but to set up authentication

#1 0.468 Submodule '<repo_name>' ([email protected]:<repo_name>.git) registered for path '<repo_name>'
#1 0.476 Cloning into '<path>/<repo_name>'...
#1 0.514 Warning: Permanently added 'github.com' (ECDSA) to the list of known hosts.
#1 0.568 [email protected]: Permission denied (publickey).
#1 0.569 fatal: Could not read from remote repository.
#1 0.569 
#1 0.569 Please make sure you have the correct access rights
#1 0.569 and the repository exists.

QuentinTorg avatar Jun 06 '24 15:06 QuentinTorg