Ghost/.github
Chris Raible 401ec7d14d
Improved pre-commit hook to automatically remove submodules (#21222)
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.
2024-10-12 03:40:31 -07:00
..
actions/restore-cache Update actions/cache action to v4 2024-04-18 12:36:07 +02:00
hooks Improved pre-commit hook to automatically remove submodules (#21222) 2024-10-12 03:40:31 -07:00
ISSUE_TEMPLATE Switched our old style bug report template to a form 2021-11-12 10:30:08 +00:00
scripts Remove docker-compose version 2024-10-08 14:34:11 +01:00
workflows Configured i18n tests to run for sodo-search (#21199) 2024-10-03 07:56:02 -05:00
CODE_OF_CONDUCT.md Added contributor code of conduct 2023-10-18 12:10:05 +02:00
codecov.yml Updated workflow for code coverage 2023-07-06 09:24:45 +02:00
CONTRIBUTING.md Added translation gitmoji (#21226) 2024-10-04 16:28:31 +00:00
FUNDING.yml Update FUNDING.yml 2020-07-28 13:19:20 +07:00
PULL_REQUEST_TEMPLATE.md Removed GitHub Copilot for PRs templating value 2023-11-20 11:43:58 +01:00
SUPPORT.md Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00