Created
September 18, 2012 16:41
-
-
Save robhudson/3744199 to your computer and use it in GitHub Desktop.
git post-merge hook to look for changes to requirements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $(git diff HEAD@{1} HEAD --name-only | grep 'requirements/' -c) -ne 0 ] | |
then | |
$VIRTUAL_ENV/bin/pip install -r requirements/dev.txt | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've actually toyed with doing something simpler: just run
pip install -r
(or now piplint) regularly to try to catch any manual installs I might have done, particularly across major feature branches.