mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-10-02 07:28:53 +00:00
Added Git Hooks
This commit is contained in:
parent
5617f8f63e
commit
2a3f5bc5db
5
.github/hooks/README.md
vendored
Normal file
5
.github/hooks/README.md
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Git Hooks
|
||||||
|
These work even on Windows because of Git Bash.
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
`git config core.hooksPath .github/hooks`
|
2
.github/hooks/post-checkout
vendored
Normal file
2
.github/hooks/post-checkout
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
git submodule update --init --recursive
|
2
.github/hooks/post-merge
vendored
Normal file
2
.github/hooks/post-merge
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
git submodule update --init --recursive
|
5
.github/hooks/pre-push
vendored
Normal file
5
.github/hooks/pre-push
vendored
Normal file
|
@ -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 a new issue