allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [5/5] allura git commit: Fix encoding errors noticed in test.log when running tests with weird-chars.git repo
Date Wed, 12 Jul 2017 15:58:21 GMT
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/5ef5bca5
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/5ef5bca5
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/5ef5bca5

Branch: refs/heads/master
Commit: 5ef5bca5961c0ed1d1fcfc7eba861c499fda8d43
Parents: adf67f5
Author: Dave Brondsema <dave@brondsema.net>
Authored: Thu Jul 6 15:29:44 2017 -0400
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Thu Jul 6 15:51:12 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/5ef5bca5/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,


Mime
View raw message