Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .gitmodules #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jamisonderek
Copy link

I'm not sure if it's my environment or something, but when I recursively cloned the repo, I had issues with the submodules using the "[email protected]:" format but the "https://github.com/" format worked fine. It looks like the .gitmodules has a combination of both, so this just standardizes them to use https: (which is the format that works for me).

NOTE: For some unrelated issue the path "documentation/ch32v003/ch32v003fun" doesn't seem to get filled in.

@kantoniak
Copy link

@jamisonderek, you can force HTTP auth locally without changing the upstream code using the url.<base>.insteadOf config option:

git -c url.https://github.com/[email protected]: \
  clone --recursive https://github.com/Hack-a-Day/2024-Supercon-8-Add-On-Badge.git

This needs to be configured to persist:

cd 2024-Supercon-8-Add-On-Badge
git config --local url."https://github.com".insteadOf git://github.com:
git submodule foreach --recursive 'git config --local url."https://github.com/".insteadOf [email protected]:'
# `git submodule update --recursive --remote` and similar commands will use HTTP auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants