Skip to content

Instantly share code, notes, and snippets.

@buccolo
Last active July 25, 2016 14:34
Show Gist options
  • Save buccolo/7045126df1a0854f55f875970a798b67 to your computer and use it in GitHub Desktop.
Save buccolo/7045126df1a0854f55f875970a798b67 to your computer and use it in GitHub Desktop.
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