Skip to content

Commit

Permalink
Fixed pre-commit hook and setup to copy in githooks
Browse files Browse the repository at this point in the history
  • Loading branch information
nstbayless committed Aug 27, 2017
1 parent 676a8ca commit bf662f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ fi
# generate patch
./make-patch.sh

# pause to read input if successful:
if [ $? -eq 0 ]
then
sleep 0.5
fi

exit $?
4 changes: 2 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
echo "Seting git hoooks directory to hooks/"
git config core.hooksPath hooks
echo "Copying in git hooks"
cp -r hooks .git

if [ -f base.nes ]
then
Expand Down

0 comments on commit bf662f9

Please sign in to comment.