X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=post_edit_hook.sh;h=f756882ecdc0253ea8c3b6b7a99cb74ce7c3499d;hb=799b890d2a48b494346a1334393fb7c0198b446d;hp=d12d0a79257f0fad2ef4b719513abc3ab580a926;hpb=26cf3bfac2c5438e4496f41b6179ac6f5104fcfc;p=geekigeeki.git diff --git a/post_edit_hook.sh b/post_edit_hook.sh index d12d0a7..f756882 100755 --- a/post_edit_hook.sh +++ b/post_edit_hook.sh @@ -4,7 +4,7 @@ set -e exec 2>&1 -if [ $# -ne 3 ]; then +if [ $# -ne 4 ]; then echo "Usage $0 " exit 1 fi @@ -12,9 +12,9 @@ fi repo=`dirname "$1"` file=`basename "$1"` -cd $repo -git-add $file # In case it's a new page +cd "$repo" +git add "$file" # In case it's a new page -GIT_COMMITTER_NAME='Piki Plus' \ +GIT_COMMITTER_NAME='GeekiGeeki' \ GIT_COMMITTER_EMAIL='webmaster@codewiz.org' \ -git-commit -a -m "Edit page $file" --author="$2 <$2@$3>" +git commit -a -m "$4" --author="$2 <$2@$3>"