From e4d3809161fc54d6913c0c2c7f6a7b51eebe223f Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 21 Jan 2015 18:34:58 +0100 Subject: 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 --- git/repo/base.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'git/repo/base.py') 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 -- cgit v1.2.1