Browse Source

Make githook accessible in repo

marches
Josh Gordon 3 years ago
parent
commit
2705f3e857
  1. 10
      app/pre-commit

10
app/pre-commit

@ -0,0 +1,10 @@
#!/bin/bash
echo "Beginning git hook"
pwd
echo ""
#check if new logs are added and update logs.json
git status | sed -e "1,4d" -e "$d" | sed -e "s/^.............//" | grep "Worlds\/[^\/]*\/logs\/.*\.txt" | while read f; do
python app/updateLogJSON.py $f | xargs git add
done
Loading…
Cancel
Save