Skip to content

Commit

Permalink
PyGIT: added GitCore.__repr__ to help debugging, otherwise `GitCore…
Browse files Browse the repository at this point in the history
….__getattr__` gets in the way.
  • Loading branch information
Christian Boos authored and hvr committed Oct 18, 2010
1 parent d30c3ab commit 5cbdfd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tracext/git/PyGIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def __init__(self, git_dir=None, git_bin="git"):
self.__git_bin = git_bin
self.__git_dir = git_dir

def __repr__(self):
return '<GitCore bin="%s" dir="%s">' % (self.__git_bin, self.__git_dir)

def __build_git_cmd(self, gitcmd, *args):
"construct command tuple for git call suitable for Popen()"

Expand Down

0 comments on commit 5cbdfd9

Please sign in to comment.