Skip to content

Commit 616eb44

Browse files
committed
add a stash/pop to the tidy pre-push git-hook
added error handling for git stash and apply fix tidy err abort if stash push fails fix tidy errors... again
1 parent 9725c4b commit 616eb44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/etc/pre-push.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ cd "$ROOT_DIR"
2929
# The env var is necessary for printing diffs in py (fmt/lint) and cpp.
3030
TIDY_PRINT_DIFF=1 ./x test tidy \
3131
--set build.locked-deps=true \
32+
--pre-push \
3233
--extra-checks auto:py,auto:cpp,auto:js
34+
3335
if [ $? -ne 0 ]; then
3436
echo "You may use \`git push --no-verify\` to skip this check."
3537
exit 1

0 commit comments

Comments
 (0)