From 8393f32eb910ce2cf768a41aa8f22bb57e734c4d Mon Sep 17 00:00:00 2001 From: akutsan Date: Fri, 14 Mar 2014 17:24:19 +0200 Subject: [PATCH] APPLINK-6229 Create script to set default git message --- tools/initialise_git.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tools/initialise_git.sh diff --git a/tools/initialise_git.sh b/tools/initialise_git.sh new file mode 100755 index 0000000..5215793 --- /dev/null +++ b/tools/initialise_git.sh @@ -0,0 +1,19 @@ +#/usr/bin/sh + +GIT_REPO=$1 +MESSAGE_DATA="Not a subject for review" +MESSGAGE_FILE_NAME="default_message" +GIT_CONFIG_DATA="[commit]\n\ttemplate = .git/$MESSGAGE_FILE_NAME" + +if [ "$GIT_REPO" = "" ] +then + echo "You should setup your git folder with first paraameter" + echo "Example:" + echo -e "\t ./initialise_git.sh /home/{USER_NAME}/applink" + exit +fi + +cd $GIT_REPO/.git +echo $MESSAGE_DATA > $MESSGAGE_FILE_NAME +echo $GIT_CONFIG_DATA >> ./config +echo "Done" -- 2.7.4