The full question would be:
Isn't a bad practice to commit/push changes from a submodule repository instead of cloning it in a separate, independent repo and doing all the changes there?
I'm trying to convince some of my colleagues that the 'cleaner' and best way of adding changes to a submodule repository is to clone it in a separate repo, add the changes (add, commit, push) and then updating the submodule version in the 'host' project. However, my epic motivational speech on this matter had little impact on them, and I need extra argument ammunition to change their minds. For now, the main reasons that I have found are:
- Submodule repositories point by definition to a commit, not to the latest version, so adding changes from a DETACHED_HEAD state is messy.
- Conceptually, a submodule is a dependency.
- Cloning the submodule repository in a separate place and doing there all the changes, then checking out the submodule to the new version implies little extra effort.
Is there any other arguments in favor (or against) this idea?
Thanks in advance!