You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2020/01/28 20:16:19 UTC
[allura] 04/08: [#8333] avoid encoding issues in
LastCommit.__repr__ by using the repr of the path
This is an automated email from the ASF dual-hosted git repository.
kentontaylor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
commit ca2bdaa05ee75c5ac07053d27d213f3eb024d703
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Tue Sep 17 14:52:01 2019 -0400
[#8333] avoid encoding issues in LastCommit.__repr__ by using the repr of the path
---
Allura/allura/model/repository.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
index be077d3..5507356 100644
--- a/Allura/allura/model/repository.py
+++ b/Allura/allura/model/repository.py
@@ -1549,7 +1549,7 @@ class EmptyBlob(Blob):
class LastCommit(RepoObject):
def __repr__(self):
- return '<LastCommit /%s %s>' % (self.path, self.commit_id)
+ return '<LastCommit /%r %s>' % (self.path, self.commit_id)
@classmethod
def _last_commit_id(cls, commit, path):