allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [allura] 04/08: [#8333] avoid encoding issues in LastCommit.__repr__ by using the repr of the path
Date Tue, 28 Jan 2020 20:16:19 GMT
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 <dave@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):


Mime
View raw message