Created
March 15, 2013 08:45
-
-
Save cbandy/5168393 to your computer and use it in GitHub Desktop.
Git-bisect a Ruby project while applying a patch in the stash.
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
| # GOOD: cc03053 | |
| # BAD: 408174f | |
| git bisect start 408174f cc03053 | |
| git bisect run ./test-stash-0.sh |
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 | |
| bundle install | |
| git stash apply stash@{0} | |
| bundle exec rake | |
| result=$? | |
| git reset --hard | |
| [ $result -ne 0 ] && exit 1 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To speed things up, I also added
--fail-fastto the.rspecfile.