mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-11 14:48:02 +00:00
Merge pull request #177 from FunkinCrew/rewrite/bugfix/git-hooks
Added Git Hooks to the repo
This commit is contained in:
commit
689420ed02
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