# HG changeset patch # User Mads Kiilerich # Date 1444339318 -7200 # Node ID 4b647864075e01523b268375ac7d626afc3bdcea # Parent 7f9040460576b8b391dd6400081f35764fa9778d git: add unicode conversion to make tests pass with dulwich 0.11.2 This makes the test suite pass with both dulwich 0.9.9 and the unsupported 0.11.2. diff -r 7f9040460576 -r 4b647864075e kallithea/controllers/compare.py --- a/kallithea/controllers/compare.py Fri Oct 02 22:46:15 2015 +0200 +++ b/kallithea/controllers/compare.py Thu Oct 08 23:21:58 2015 +0200 @@ -35,6 +35,7 @@ from pylons.controllers.util import redirect from pylons.i18n.translation import _ +from kallithea.lib.utils2 import safe_str from kallithea.lib.vcs.utils.hgcompat import unionrepo from kallithea.lib import helpers as h from kallithea.lib.base import BaseRepoController, render @@ -114,10 +115,10 @@ from dulwich.client import SubprocessGitClient gitrepo = Repo(org_repo.path) - SubprocessGitClient(thin_packs=False).fetch(other_repo.path, gitrepo) + SubprocessGitClient(thin_packs=False).fetch(safe_str(other_repo.path), gitrepo) gitrepo_remote = Repo(other_repo.path) - SubprocessGitClient(thin_packs=False).fetch(org_repo.path, gitrepo_remote) + SubprocessGitClient(thin_packs=False).fetch(safe_str(org_repo.path), gitrepo_remote) revs = [] for x in gitrepo_remote.get_walker(include=[other_rev],