Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Created December 5, 2014 06:40
Show Gist options
  • Save masaru-b-cl/440cdb65c4f76cc1a3d6 to your computer and use it in GitHub Desktop.
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 を使用する)
#!/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