Skip to content

Instantly share code, notes, and snippets.

@buccolo

buccolo/bisect.sh

Last active Jul 25, 2016
Embed
What would you like to do?
Bisector
#!/bin/zsh
# abort on errors
set -e
# setup correct ruby
source $(brew --prefix chruby)/share/chruby/chruby.sh
chruby $(cat ~/dev/project/.ruby-version)
# reproduce issue
cd ~/dev/project
bundle exec rspec spec/your_spec.rb
git bisect start
git bisect bad # current bad commit
git bisect good master # last working commit
git bisect run ../bisect.sh
git bisect reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment