added logging to commit hooks
This commit is contained in:
parent
c0167bd5d1
commit
8da184333e
|
@ -1,3 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "restoring stashed changes"
|
||||||
|
|
||||||
git stash pop -q
|
git stash pop -q
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "stashing all uncommitted changes"
|
||||||
git stash -q --keep-index
|
git stash -q --keep-index
|
||||||
|
|
||||||
echo "checking flakes all compile"
|
echo "checking flakes all compile"
|
||||||
|
@ -14,6 +15,7 @@ echo "running linter"
|
||||||
|
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
|
|
||||||
|
echo "adding lint changes to commit"
|
||||||
git add -u
|
git add -u
|
||||||
|
|
||||||
exit $RESULT
|
exit $RESULT
|
Loading…
Reference in a new issue