Skip to content

Instantly share code, notes, and snippets.

@whilefalse
Created June 10, 2011 15:42
Show Gist options
  • Save whilefalse/1019087 to your computer and use it in GitHub Desktop.
Save whilefalse/1019087 to your computer and use it in GitHub Desktop.
Bundle install git post-merge hook
#!/bin/bash
if [ ! -z `git diff --name-only HEAD@{1}..HEAD Gemfile` ]
then
echo -e "\033[0;31m*** Gemfile change detected, running bundle install ***\033[0m"
bundle install
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment