projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a2e445
)
Quote strings in git shell glue
author
Bernie Innocenti
<bernie@codewiz.org>
Sat, 3 Apr 2010 23:40:42 +0000
(20:40 -0300)
committer
Bernie Innocenti
<bernie@codewiz.org>
Sat, 3 Apr 2010 23:40:42 +0000
(20:40 -0300)
post_edit_hook.sh
patch
|
blob
|
history
diff --git
a/post_edit_hook.sh
b/post_edit_hook.sh
index 57dd0f853776ce456f8f9fdc5234384b57f55811..f756882ecdc0253ea8c3b6b7a99cb74ce7c3499d 100755
(executable)
--- 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' \