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 @@ -1064,7 +1064,8 @@ def has_separate_working_tree(self):
10641064 rev_parse = rev_parse
10651065
10661066 def __repr__ (self ):
1067- return '<git.Repo "%s">' % self .git_dir
1067+ clazz = self .__class__
1068+ return '<%s.%s %r>' % (clazz .__module__ , clazz .__name__ , self .git_dir )
10681069
10691070 def currently_rebasing_on (self ):
10701071 """
Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ def test_alternates(self):
362362 self .rorepo .alternates = cur_alternates
363363
364364 def test_repr (self ):
365- assert repr (self .rorepo ).startswith ('<git.Repo ' )
365+ assert repr (self .rorepo ).startswith ('<git.repo.base. Repo ' )
366366
367367 def test_is_dirty_with_bare_repository (self ):
368368 orig_value = self .rorepo ._bare
You can’t perform that action at this time.
0 commit comments