You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2017/07/06 19:31:46 UTC

[5/5] allura git commit: Fix encoding errors noticed in test.log when running tests with weird-chars.git repo

Fix encoding errors noticed in test.log when running tests with weird-chars.git repo


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/925f9a6f
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/925f9a6f
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/925f9a6f

Branch: refs/heads/db/8157
Commit: 925f9a6f6697ab885865aa74080882ecc6b75fe2
Parents: 8677293
Author: Dave Brondsema <da...@brondsema.net>
Authored: Thu Jul 6 15:29:44 2017 -0400
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Thu Jul 6 15:30:02 2017 -0400

----------------------------------------------------------------------
 ForgeGit/forgegit/model/git_repo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/925f9a6f/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index 73e3131..52e1c6e 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -630,7 +630,7 @@ class GitImplementation(M.RepositoryImplementation):
         skip = 0
         while commit_id and not files:
             output = self._git.git.log(
-                commit_id, '--', *paths,
+                commit_id, '--', *[p.encode('utf-8') for p in paths],
                 pretty='format:%H',
                 name_only=True,
                 max_count=1,