how to automatically run bundle install if the gemfile is updated after a git pull/merge?

Viewed 2303

I imagine that I should write a git commit hook (post-merge?) that would look at the list of changed files and run bundle install if necessary after I fetch and merge from my git repo.

But after some googling, I figure that either this should exist (couldn't find it!) or there's a good reason not to do this.

2 Answers
Related