浏览代码

Encode message and committer for git commits (fix #313)

Guillaume Ayoub 10 年之前
父节点
当前提交
7b82121c12
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      radicale/storage/filesystem.py

+ 2 - 1
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