From: Bernie Innocenti Date: Sat, 3 Apr 2010 23:40:42 +0000 (-0300) Subject: Quote strings in git shell glue X-Git-Url: https://codewiz.org/gitweb?p=geekigeeki.git;a=commitdiff_plain;h=ae02752908b5369019933b080324189ee373bed2;hp=5a2e445da1711b54343334087b760b86935fb876 Quote strings in git shell glue --- diff --git a/post_edit_hook.sh b/post_edit_hook.sh index 57dd0f8..f756882 100755 --- a/post_edit_hook.sh +++ b/post_edit_hook.sh @@ -12,8 +12,8 @@ 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='GeekiGeeki' \ GIT_COMMITTER_EMAIL='webmaster@codewiz.org' \