Added Git Hooks
This commit is contained in:
parent
5617f8f63e
commit
2a3f5bc5db
|
@ -0,0 +1,5 @@
|
||||||
|
# Git Hooks
|
||||||
|
These work even on Windows because of Git Bash.
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
`git config core.hooksPath .github/hooks`
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
git submodule update --init --recursive
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
git submodule update --init --recursive
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
if git diff --cached --submodule | grep -q "^+"; then
|
||||||
|
echo "WARNING: You have unpushed changes in submodules."
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue