-
-
Save bergantine/3745056 to your computer and use it in GitHub Desktop.
post-merge Git hook to look for changes to requirements. #bash #git #hook #pip #python
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