Created
December 5, 2014 06:40
-
-
Save masaru-b-cl/440cdb65c4f76cc1a3d6 to your computer and use it in GitHub Desktop.
master以外でgit svn dcommitできないようにするフックスクリプト(https://github.com/rkitover/git-svn-hooks を使用する)
This file contains hidden or 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 | |
WORKING_BRANCH=`git branch -l | grep "*" | cut -d " " -f 2` | |
if [ $WORKING_BRANCH != "master" ] | |
then | |
echo "WARNING: curret branch is NOT \"master\"" | |
exit 1 | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment