mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
401ec7d14d
no issue # Before The pre-commit hook would abort the commit if any submodules were staged for commit, and prompt the user to manually un-stage them and retry the commit. # Now The pre-commit hook automatically un-stages any staged submodules, then allows the commit to proceed. # Why? This was a daily annoyance that caused many common git commands to abort, and required manual un-staging of the submodules before retrying the commit: - `git commit -a` - `git add . && git commit` - `git add -A && git commit` If we ever _do_ need to commit submodules, we can always add them back and run `git commit --no-verify` to accomplish that (which we would have needed to do before regardless). This should accomplish the same goal of not allowing submodules to be committed, but reduce the day to day friction of making commits in Ghost. |
||
---|---|---|
.. | ||
pre-commit |