Created
June 8, 2017 11:55
-
-
Save paven/17811d4cdc649b6e1acfaec9d266388c to your computer and use it in GitHub Desktop.
run tests in hooks pre-push, post-rewrite, post-merge etc
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
#!/bin/sh | |
oldStash=b hash stash@{0} | |
git stash save --include-untracked | |
stash=b hash stash@{0} | |
mvn install | |
if [ $stash != $oldStash ]; then | |
git stash pop | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment