Skip to content

Commit

Permalink
Fix Repo.__repr__ when subclassed
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-matejka committed Dec 30, 2019
1 parent f7cff58 commit b9d4c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git/repo/base.py
Expand Up @@ -1064,7 +1064,8 @@ def has_separate_working_tree(self):
rev_parse = rev_parse

def __repr__(self):
return '<git.Repo "%s">' % self.git_dir
clazz = self.__class__
return '<%s.%s "%s">' % (clazz.__module__, clazz.__name__, self.git_dir)

def currently_rebasing_on(self):
"""
Expand Down

0 comments on commit b9d4c6a

Please sign in to comment.