Skip to content

Instantly share code, notes, and snippets.

@cbandy
Created March 15, 2013 08:45
Show Gist options
  • Select an option

  • Save cbandy/5168393 to your computer and use it in GitHub Desktop.

Select an option

Save cbandy/5168393 to your computer and use it in GitHub Desktop.
Git-bisect a Ruby project while applying a patch in the stash.
# GOOD: cc03053
# BAD: 408174f
git bisect start 408174f cc03053
git bisect run ./test-stash-0.sh
#!/bin/sh
bundle install
git stash apply stash@{0}
bundle exec rake
result=$?
git reset --hard
[ $result -ne 0 ] && exit 1
@cbandy
Copy link
Copy Markdown
Author

cbandy commented Mar 15, 2013

To speed things up, I also added --fail-fast to the .rspec file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment