Skip to content
Browse files

PyGIT: added `GitCore.__repr__` to help debugging, otherwise `GitCore…

….__getattr__` gets in the way.
  • Loading branch information...
1 parent d30c3ab commit 5cbdfd9cde39b30c61a311fbe3a1c46992520cae Christian Boos committed with Jul 26, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 tracext/git/PyGIT.py
View
3 tracext/git/PyGIT.py
@@ -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()"

0 comments on commit 5cbdfd9

Please sign in to comment.
Something went wrong with that request. Please try again.