If your git config credential.helper
is set (for instance, to manager-core
on Windows), the credential Windows should cache your GitHub credentials (GitHub user account/password)
Try first:
git ls-remote https://github.com/<me>/saleor-storefront.git
(replace <me>
by your GitHub user account, assuming you have forked saleor-storefront
)
Once you have cached your credentials, and git ls-remote
does not ask for those anymore, try again to change the submodule URL.
Make sure to change the URL with git submodule set-url
, as I suggested in your previous question.
An error message like the remote end hung up unexpectedly Fetched in submodule path 'saleor-storefront', but it did not contain xxx
is explained here.
You need for the parent repository (your fork) to add and commit the new remote submodule repository tree SHA1, which should be done through git submodule set-url
, and then push that updated fork.
Test: I have forked, then clone saleor-platform.
D:gitestssaleor-platform>git submodule update --init
Submodule 'saleor' (https://github.com/mirumee/saleor.git) registered for path 'saleor'
Submodule 'saleor-dashboard' (https://github.com/mirumee/saleor-dashboard.git) registered for path 'saleor-dashboard'
Submodule 'saleor-storefront' (https://github.com/mirumee/saleor-storefront.git) registered for path 'saleor-storefront'
Cloning into 'D:/git/tests/saleor-platform/saleor'...
Cloning into 'D:/git/tests/saleor-platform/saleor-dashboard'...
Cloning into 'D:/git/tests/saleor-platform/saleor-storefront'...
Submodule path 'saleor': checked out '3b31391b92b184b591ef4e85ff6a59cd52cdad98'
Submodule path 'saleor-dashboard': checked out '8bcb8b70878078b74133aea0244dc840d75b492f'
Submodule path 'saleor-storefront': checked out '3ba4ffa8a14f90398462b84e5da088baeb84dfc6'
Then I forked saleor-storefront
.
I replace that submodule by my own forked submodule:
D:gitestssaleor-platform>git submodule set-url -- saleor-storefront https://github.com/VonC/saleor-storefront
Synchronizing submodule url for 'saleor-storefront'
Update the changed .gitmodules:
D:gitestssaleor-platform>git st
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .gitmodules
no changes added to commit (use "git add" and/or "git commit -a")
D:gitestssaleor-platform>git add .
D:gitestssaleor-platform>git commit -m "Update saleor-storefront submodule"
[master d9f1f79] Update saleor-storefront submodule
1 file changed, 1 insertion(+), 1 deletion(-)
Push back to my fork
D:gitestssaleor-platform>git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 337 bytes | 337.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/VonC/saleor-platform
cbc31e4..d9f1f79 master -> master
Clone again the main repo (my fork) with my forked submodule:
D:gitests> git clone --recurse-submodules https://github.com/VonC/saleor-platform saleor-platform2
Cloning into 'saleor-platform2'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (9/9), done.
Receiving objects: 67% (138/205) 205 (delta 3), reused 3 (delta 0), pack-reused 19666% (136/205)
Receiving objects: 100% (205/205), 68.40 KiB | 454.00 KiB/s, done.
Resolving deltas: 100% (99/99), done.
Submodule 'saleor' (https://github.com/mirumee/saleor.git) registered for path 'saleor'
Submodule 'saleor-dashboard' (https://github.com/mirumee/saleor-dashboard.git) registered for path 'saleor-dashboard'
Submodule 'saleor-storefront' (https://github.com/VonC/saleor-storefront) registered for path 'saleor-storefront'
Cloning into 'D:/git/tests/saleor-platform2/saleor'...
remote: Enumerating objects: 237, done.
remote: Counting objects: 100% (237/237), done.
remote: Compressing objects: 100% (188/188), done.
remote: Total 178889 (delta 93), reused 78 (delta 49), pack-reused 178652
Receiving objects: 100% (178889/178889), 100.57 MiB | 9.63 MiB/s, done.
Resolving deltas: 100% (130714/130714), done.
Cloning into 'D:/git/tests/saleor-platform2/saleor-dashboard'...
remote: Enumerating objects: 12, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 37906 (delta 1), reused 1 (delta 0), pack-reused 37894
Receiving objects: 100% (37906/37906), 23.81 MiB | 12.03 MiB/s, done.
Resolving deltas: 100% (25584/25584), done.
Cloning into 'D:/git/tests/saleor-platform2/saleor-storefront'...
remote: Enumerating objects: 46, done.
remote: Counting objects: 100% (46/46), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 34033 (delta 21), reused 15 (delta 8), pack-reused 33987
Receiving objects: 100% (34033/34033), 17.14 MiB | 3.04 MiB/s, done.
Resolving deltas: 100% (23073/23073), done.
Submodule path 'saleor': checked out '3b31391b92b184b591ef4e85ff6a59cd52cdad98'
Submodule path 'saleor-dashboard': checked out '8bcb8b70878078b74133aea0244dc840d75b492f'
Submodule path 'saleor-storefront': checked out '3ba4ffa8a14f90398462b84e5da088baeb84dfc6'