3 ms·
I have always done —depth=1 for projects I am not a core developer of, but ran into an issue with it being seemingly impossible to do the same with submodules.
by ComputerGuru 7y ago
I have always done —depth=1 for projects I am not a core developer of, but ran into an issue with it being seemingly impossible to do the same with submodules.
Golang should have figured this out from day 1 before shipping with a release system built around cloning a repo in its entirety, history and recursive submodules, and all.
- est31 7y agodepth=1 is an old feature but it only limits the clone in the history dimension. You still have to store the entire state of the tree as of last commit. This feature is about cloning parts of the tree.
- ComputerGuru 7y agoMy point is that even that basic functionality a) did not extend to all of git's core functionality, and b) went unused by major players in the industry self-procaimedly responsible for "optimizing" the internet.
- xyzzy_plugh 7y agoFWIW Go modules address this pretty well.
- alexhutcheson 7y agoHave you tried the --shallow_submodules flag? I haven't used it, but it seems like to should do what you want.