post-receive hook: force UTF-8 locale
this fixes encoding errors when the pages are generated in the post-receive hook.
This commit is contained in:
parent
d7e003a519
commit
cfbf4a11ad
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,10 @@
|
|||
# if name is not set the basename of the current directory is used,
|
||||
# this is the directory of the repo when called from the post-receive script.
|
||||
|
||||
# NOTE: needs to be set for correct locale (expects UTF-8) otherwise the
|
||||
# default is LC_CTYPE="POSIX".
|
||||
export LC_CTYPE="en_US.UTF-8"
|
||||
|
||||
name="$1"
|
||||
if test "${name}" = ""; then
|
||||
name=$(basename $(pwd))
|
||||
|
|
Loading…
Reference in a new issue