From 75a8db26b518ee0e935d00f08f549f3b226bfe0e Mon Sep 17 00:00:00 2001 From: Matt Watson Date: Wed, 19 Feb 2014 14:55:37 -0800 Subject: Removed the commit-msg hook And the code to install it in autogen.sh [endlessm/eos-sdk#587] --- autogen.sh | 6 ------ commit-msg | 14 -------------- 2 files changed, 20 deletions(-) delete mode 100644 commit-msg diff --git a/autogen.sh b/autogen.sh index 4f7b9e3..bc5d99d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -14,12 +14,6 @@ test -f $FILE_MUST_EXIST || { exit 1 } -# Install our commit message script if a git repo -if [ -d .git ]; then - cp commit-msg .git/hooks/commit-msg - chmod +x .git/hooks/commit-msg -fi - git remote set-url origin http://github.com/endlessm/eos-sdk.git git submodule init . git submodule update --recursive diff --git a/commit-msg b/commit-msg deleted file mode 100644 index 5977945..0000000 --- a/commit-msg +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# move this script to the .git/hooks directory for your repo. -# make sure to chmod +x .git/hooks/commit-msg - -branch=`git rev-parse --abbrev-ref HEAD` - -if [[ $branch == issues/* ]]; then - link=$(echo $branch | awk -F/ '{ print "[endlessm/eos-sdk#"$2"]" }') - echo "issue link: $link" - echo $link >> $1 -fi - -exit 0 -- cgit v1.2.3