Created
May 9, 2012 16:11
-
-
Save nikomatsakis/2646038 to your computer and use it in GitHub Desktop.
This file contains 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
rust-try: | |
#!/bin/bash | |
git diff --quiet HEAD | |
if [[ "$?" != "0" ]]; then | |
echo "Cannot push to master with uncommited changes." | |
exit 1 | |
fi | |
git push -f mozilla HEAD:try | |
rust-master: | |
#!/bin/bash | |
git diff --quiet HEAD | |
if [[ "$?" != "0" ]]; then | |
echo "Cannot push to master with uncommited changes." | |
exit 1 | |
fi | |
git push mozilla HEAD:master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment