File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1057,7 +1057,8 @@ def has_separate_working_tree(self):
1057
1057
rev_parse = rev_parse
1058
1058
1059
1059
def __repr__ (self ):
1060
- return '<git.Repo "%s">' % self .git_dir
1060
+ clazz = self .__class__
1061
+ return '<%s.%s %r>' % (clazz .__module__ , clazz .__name__ , self .git_dir )
1061
1062
1062
1063
def currently_rebasing_on (self ):
1063
1064
"""
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ def test_alternates(self):
355
355
self .rorepo .alternates = cur_alternates
356
356
357
357
def test_repr (self ):
358
- assert repr (self .rorepo ).startswith ('<git.Repo ' )
358
+ assert repr (self .rorepo ).startswith ('<git.repo.base. Repo ' )
359
359
360
360
def test_is_dirty_with_bare_repository (self ):
361
361
orig_value = self .rorepo ._bare
You can’t perform that action at this time.
0 commit comments