Created
May 15, 2016 19:34
-
-
Save dlrobertson/ea754438b96f9682abba631bf406a1c5 to your computer and use it in GitHub Desktop.
Avoid accidentally pushing with tidy errors present
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
servo-push = "!f() { \ | |
./mach test-tidy --faster; \ | |
if [[ $? != 0 ]]; then \ | |
echo 'tidy failed: please fix'; \ | |
exit 1; \ | |
fi; \ | |
git push $@; \ | |
}; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment