From ae02752908b5369019933b080324189ee373bed2 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Sat, 3 Apr 2010 20:40:42 -0300 Subject: [PATCH] Quote strings in git shell glue --- post_edit_hook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' \ -- 2.25.1