-
Notifications
You must be signed in to change notification settings - Fork 46
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
autogen.sh: prefer shallow git submodules if parent is shallow #252
base: master
Are you sure you want to change the base?
Conversation
The most likely scenario for someone to use a shallow clone is to save some bandwidth (especially useful for slow or data-capped connections), so it makes sense to assume that the submodules should be retreived in a similar way (especially considering some submodules that Smuxi depends on are quite heavy, possibly due to inclusion of binaries).
Since this build flavor isn't covered in the CI, does this really build? smuxi has a submodule lib/SmartIrc4net and that has a submodule src/starksoftproxy so depth would be 2 instead of 1 |
Mmm, depth is not the submodule nesting depth but the amount of commits back in history you want to retreive. But anyway, true, I see that the submodule population is somehow not working:
But the one that failed is agsxmpp, not SmartIrc4net :-m |
If I try again, I get:
I've read about this error, and it seems it's because the repositories of the submodules are not pointing to the last HEAD (which is normal), and git > 2.8 might have better support for this (unfortunately this version is too bleeding edge for most distros I guess, since the last ubuntu LTS bundles 2.7.4). I guess we can wait a bit until we can merge this then. |
The most likely scenario for someone to use a shallow
clone is to save some bandwidth (especially useful for
slow or data-capped connections), so it makes sense to
assume that the submodules should be retreived in a
similar way (especially considering some submodules
that Smuxi depends on are quite heavy, possibly due to
inclusion of binaries).