Last active
August 29, 2015 14:05
-
-
Save k-takata/ad193c4acf96798dbc51 to your computer and use it in GitHub Desktop.
Git hook to prevent pushing when patches are applied by StGit
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 stg top > /dev/null 2>&1; then | |
echo error: patch applied. | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment