Cannot update submodules in private repos requiring token
See original GitHub issueSeems like there is no option to pass token in order to update submodules in the private repository… How could I pass a token?
import Git from 'simple-git';
const git = Git(localDir);
await git.submoduleUpdate(['--init', upgrade.depName]);
For initial repo one could modify repo URL and add token there, but for submodules it doesn’t seem to work…
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Cannot update submodules in private repos requiring token -
Seems like there is no option to pass token in order to update submodules in the private repository.... How could I pass a...
Read more >git submodule update fails when using access token
I cloned a github repo I own into the VM. The repo contains a submodule. I ran git submodule init which returned: $...
Read more >Git submodules cannot be checked-out / updated with CI token
One can add a git submodule update --init in the before_script , but this is insufficient. If you stick with SSH, you'll need...
Read more >Private Repositories - Declarative GitOps CD for Kubernetes
Private repositories that require a username and password typically have a URL that start with https:// rather than git@ or ssh:// .
Read more >Apps with submodules or private repo dependencies
Bitrise needs access to all repositories or submodules for a successful build, so if your app has submodules or private repo dependencies, you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If your submodules have been added with an
http
based remote uri, the.netrc
file will be picked up as usual whengit
is called bysimple-git
. You may need to check that there is a.netrc
file configured for the user you’re running thenodejs
script as.To help finding issues with authorisation in the sub-module, you may want to enable git tracing
Do you know how you would pass the token through if you were using command line
git
?If you need to pass a custom header, use the per-command-configuration plugin: