From 4eb326e00ea29447a2848eaf2c4f49b7bbf566a4 Mon Sep 17 00:00:00 2001 From: gittester Date: Sun, 14 Jun 2026 08:14:29 +0200 Subject: [PATCH 1/2] Fixed submodules exercise to work with newer git versions --- submodules/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/submodules/README.md b/submodules/README.md index b5432d40..cee0f49c 100644 --- a/submodules/README.md +++ b/submodules/README.md @@ -19,7 +19,8 @@ After running the setup script, you'll be left with three repositories inside th Go to the `product` repository. -1. Add component as a submodule of product by running `git submodule add ../remote include`. +1. Add component as a submodule of product by running `git-c protocol.file.allow=always submodule add ../remote include`. +> NOTE: Newer git versions block file protocol by default. 'git -c protocol.file.allow=always' is a temporary one-time override for just this command. 2. What does your working directory look like? 3. Does `git status` look like you expect? 4. What if you cd to `include`? From 4dcacf90e445ede8da571cdc39a78f224339d5ee Mon Sep 17 00:00:00 2001 From: gittester Date: Sun, 14 Jun 2026 08:29:48 +0200 Subject: [PATCH 2/2] fix typo --- submodules/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/README.md b/submodules/README.md index cee0f49c..d8f6724b 100644 --- a/submodules/README.md +++ b/submodules/README.md @@ -19,7 +19,7 @@ After running the setup script, you'll be left with three repositories inside th Go to the `product` repository. -1. Add component as a submodule of product by running `git-c protocol.file.allow=always submodule add ../remote include`. +1. Add component as a submodule of product by running `git -c protocol.file.allow=always submodule add ../remote include`. > NOTE: Newer git versions block file protocol by default. 'git -c protocol.file.allow=always' is a temporary one-time override for just this command. 2. What does your working directory look like? 3. Does `git status` look like you expect?