Not sure why yet, but with a nested pacapt
git submodule inside another git submodule bash.aliases
, when pulling bash.aliases
it did pull the actual content of pacapt
, only the reference.
I wanted this because this allowed me to abstract installation of common packages no matter if the system was using the apt-get
, zypper
, homebrew
or other package managers. [WayBack] GitHub – icy/pacapt: An Arch’s pacman-like package manager for some Unices supports many in a coherent way (I’m way past the not-invented-here syndrome:[WayBack] linux – A universal bash script for installing with apt-get and yum – Stack Overflow).
A git pull --recurse-submodules
failed.
Even executing git submodule update --init --recursive
at the top-level did not get it.
Forcing a submodule to update after a shallow clone
I had to to inside the bash.aliases
submodule and perform git submodule update --init <submoduleName>
:
$ git submodule update --init pacapt
Submodule 'pacapt' (https://github.com/icy/pacapt.git) registered for path 'pacapt'
Cloning into '/home/jeroen_pluimers_com/bash.aliases/pacapt'...
Submodule path 'pacapt': checked out '31f43d901055e3c361dfbcefdf50231442da13de'
I got this workaround at [WayBack] Git submodule inside of a submodule (nested submodules) – Stack Overflow.
It might mean I need to read more deeply into these asgit submodule update --init --recursive
might by now need to be git submodule update --init --recurse-submodules
, but the docs are not clear on that:
Forcing a recursive clone including submodules
This worked out of the box on a Git > 2.13:
D:\Versioned\github.com\project-jedi>call git clone --recurse-submodules -j8 https://github.com/project-jedi/jcl.git
Cloning into 'jcl'...
remote: Enumerating objects: 79, done.
remote: Counting objects: 100% (79/79), done.
remote: Compressing objects: 100% (46/46), done.
Receiving objects: 100% (82053/82053), 78.7delta 33), pack-reused 81974 eceiving objects: 100% (82053/82053), 72.05 MiB | 7.14 MiB/s
9 MiB | 3.77 MiB/s, done.
Resolving deltas: 100% (65056/65056), done.
Checking out files: 100% (3461/3461), done.
Submodule 'jcl/source/include/jedi' (https://github.com/project-jedi/jedi.git) registered for path 'jcl/source/include/jedi'
Cloning into 'D:/Versioned/github.com/project-jedi/jcl/jcl/source/include/jedi'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 379 (delta 0), reused 3 (delta 0), pack-reused 375
Receiving objects: 100% (379/379), 123.87 KiB | 568.00 KiB/s, done.
Resolving deltas: 100% (120/120), done.
Submodule path 'jcl/source/include/jedi': checked out 'd04f4d341051c1245c06c822468ea927073e26eb'
–jeroen