Given a Git repository with several submodules.
Is there a way to enforce all clients (read clones) of that repository to use the --recurse-submodules=on-demand
option on pushing commits? I don't want to have the users manually add that flag to each git push
.
Beside that, I will also set up an update hook on the server to enforce this policy, but that alone would make the users have to enter --recurse-submodules=on-demand
each time they push commits.