Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Sexton <csexton@users.noreply.github.com>2020-02-13 14:44:37 -0500
committerGitHub <noreply@github.com>2020-02-13 14:44:37 -0500
commitced6656b1060b391194ae6cb67598b246040201d (patch)
tree8069789bbe453309c869495d723bfafd812c2e2c
parentbe2a7017a8fc470ed82d4d04af5ed93842109e6c (diff)
Handle submodules with SSH URLs (#140)
* Handle submodules with SSH URLs This is just a documentation change, explaining how to fix submodules that are configured to use SSH URLs instead of HTTPS URLs. Spent a while banging my head on the wall and hope this saves someone else the pain. This is helpful for teams that use the SSH protocol for local development so don't want to change the mechanism that pulls in the submodules. Using `insteadOf` seems a bit nicer than than setting up a deploy keypair. * SSH submodules Co-authored-by: Chris Patterson <chrispat@github.com>
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 82d3494..54b3429 100644
--- a/README.md
+++ b/README.md
@@ -180,6 +180,8 @@ jobs:
- name: Checkout submodules
shell: bash
run: |
+ # If your submodules are configured to use SSH instead of HTTPS please uncomment the following line
+ # git config --global url."https://github.com/".insteadOf "git@github.com:"
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1