added hook to automatically update submodules after checkout

This commit is contained in:
Michael Steinert 2023-02-10 11:49:04 +01:00 committed by Robin Mueller
parent d233dc9f82
commit 54d48feb2d
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,6 @@
#!/bin/bash #!/bin/bash
root="$(pwd)"
ln -s "$root/hooks" "$root/.git/hooks"
git submodule update --init fsfw thirdparty/rapidcsv thirdparty/lwgps thirdparty/json git submodule update --init fsfw thirdparty/rapidcsv thirdparty/lwgps thirdparty/json

6
hooks/post-checkout Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
#
# update submodules after checkout
git submodule init
git submodule update