meson: Set up git submodule update on post checkout as well

This commit is contained in:
Daan De Meyer
2024-05-03 17:44:49 +02:00
parent 69e02d94f5
commit f779fd1f8f
3 changed files with 9 additions and 2 deletions

View File

@@ -27,7 +27,8 @@ $ git config submodule.recurse true
$ git config fetch.recurseSubmodules on-demand
$ git config push.recurseSubmodules no
$ cp .git/hooks/pre-commit.sample .git/hooks/pre-commit
$ cp tools/git-post-rewrite-hook.sh .git/hooks/post-rewrite
$ cp tools/git-submodule-update-hook.sh .git/hooks/post-rewrite
$ cp tools/git-submodule-update-hook.sh .git/hooks/post-checkout
```
Please always test your work before submitting a PR.