News for hackers. Stuff that matters.
Re:Never Use Git Submodules by sligor on Friday March 03, 2023 @04:53AM (#35007662)
How about using gitsubrepo ? https://github.com/ingydotnet/git-subrepo

>This command is an improvement from git-submodule and git-subtree; two other git commands with similar goals, but various problems.

Re:Never Use Git Submodules by polski-g on Friday March 03, 2023 @07:09AM (#35008478)
That's what I switched to. Mainly because Ansible Galaxy collections don't pull the submodules when fetching the collection.
Re:Never Use Git Submodules by rossmohax on Friday March 03, 2023 @08:00AM (#35008982)
It is a great and more ergonomic alternative, can't recommend enough.
Re:Never Use Git Submodules by ihnorton on Friday March 03, 2023 @09:03AM (#35009763)
In practice it is POSIX-only, which is not viable in an organization where Windows needs to be a first class development and deployment platform. Running under cygwin or WSL is a non-starter for a number of reasons (I've done that myself for tooling in the past, after which I would never impose it at an organizational level).
Re:Never Use Git Submodules by keshet on Friday March 03, 2023 @10:43AM (#35011059)
git subrepo is what I chose to include a "core" library of functionality in a number of repositories. Works fairly well, the main thing is that git treats all the files in the subrepo the same as any other files, so no surprises.