Skip to content

Instantly share code, notes, and snippets.

@tmhedberg
Created February 4, 2013 18:26
Show Gist options
  • Select an option

  • Save tmhedberg/4708528 to your computer and use it in GitHub Desktop.

Select an option

Save tmhedberg/4708528 to your computer and use it in GitHub Desktop.
Git pre-commit hook for running RSpec test suite
#!/bin/bash
bundle exec rspec &
trap '
kill -INT $!
kill -INT $!
wait
echo
' INT
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment