summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-21 18:34:58 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-21 18:34:58 +0100
commite4d3809161fc54d6913c0c2c7f6a7b51eebe223f (patch)
tree1eebc9f43a1302c537da84e9a7219918da131f45 /git/repo/base.py
parente48e52001d5abad7b28a4ecadde63c78c3946339 (diff)
downloadgitpython-e4d3809161fc54d6913c0c2c7f6a7b51eebe223f.tar.gz
Added advance usage examples to tutorial and made minor fixes.
GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations. Related to #239
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index ef12473b..ce8db7f7 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -209,10 +209,8 @@ class Repo(object):
@property
def working_tree_dir(self):
- """:return: The working tree directory of our git repository
- :raise AssertionError: If we are a bare repository"""
- if self._working_tree_dir is None:
- raise AssertionError("Repository at %r is bare and does not have a working tree directory" % self.git_dir)
+ """:return: The working tree directory of our git repository. If this is a bare repository, None is returned.
+ """
return self._working_tree_dir
@property