We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7cff58 commit 08b0a91Copy full SHA for 08b0a91
git/repo/base.py
@@ -1064,7 +1064,8 @@ def has_separate_working_tree(self):
1064
rev_parse = rev_parse
1065
1066
def __repr__(self):
1067
- return '<git.Repo "%s">' % self.git_dir
+ clazz = self.__class__
1068
+ return '<%s.%s %r>' % (clazz.__module__, clazz.__name__, self.git_dir)
1069
1070
def currently_rebasing_on(self):
1071
"""
git/test/test_repo.py
@@ -362,7 +362,7 @@ def test_alternates(self):
362
self.rorepo.alternates = cur_alternates
363
364
def test_repr(self):
365
- assert repr(self.rorepo).startswith('<git.Repo ')
+ assert repr(self.rorepo).startswith('<git.repo.base.Repo ')
366
367
def test_is_dirty_with_bare_repository(self):
368
orig_value = self.rorepo._bare
0 commit comments