From 7b82121c12ca80207b88e21405c495bccde576e8 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 22 Sep 2015 11:01:33 +0200 Subject: [PATCH] Encode message and committer for git commits (fix #313) --- radicale/storage/filesystem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/storage/filesystem.py b/radicale/storage/filesystem.py index e358a6c..a45e8eb 100644 --- a/radicale/storage/filesystem.py +++ b/radicale/storage/filesystem.py @@ -55,7 +55,8 @@ def open(path, mode="r"): path = os.path.relpath(abs_path, FOLDER) GIT_REPOSITORY.stage([path]) committer = config.get("git", "committer") - GIT_REPOSITORY.do_commit(path, committer=committer) + GIT_REPOSITORY.do_commit( + path.encode("utf-8"), committer=committer.encode("utf-8")) # pylint: enable=W0622