testing bringing in common hooks

This commit is contained in:
Nayruden 2015-12-16 20:10:47 -05:00
parent 0bb7af5d1a
commit 4d86224987
3 changed files with 22 additions and 0 deletions

12
.git_hooks/post-commit Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
#
# .git/hooks/post-commit
#
if [ -a .commit ]
then
rm .commit
find . -name "*.build" -exec sh -c "echo `date '+%s'` > {}" \;
git add *.build
git commit --amend -C HEAD --no-verify
fi

7
.git_hooks/pre-commit Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
#
# .git/hooks/pre-commit
#
# Prevent infinite loops on post-commit
touch .commit

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule ".git_hooks"]
path = .git_hooks
url = https://github.com/TeamUlysses/git-hooks.git