From 8aea67d322eaaf7ec051890a9fc7644139eeb8ff Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 17 Oct 2008 21:45:15 +0200 Subject: [PATCH] Force encoding author names in UTF-8 for fast-import. This is necessary as other encodings are not permitted (according to gfi's documentation). Signed-off-by: Miklos Vajna --- darcs2git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darcs2git.py b/darcs2git.py index 54e31ed..132997c 100755 --- a/darcs2git.py +++ b/darcs2git.py @@ -702,7 +702,7 @@ def export_commit (repo, patch, last_patch, gfi): gfi.write ('commit refs/heads/darcstmp%d\n' % patch.number) gfi.write ('mark :%d\n' % (patch.number + 1)) - raw_name = patch.author_name + raw_name = patch.author_name.encode('UTF-8') gfi.write ('committer %s <%s> %s\n' % (raw_name, patch.author_mail, patch.date)) -- 2.11.4.GIT