summaryrefslogtreecommitdiff
path: root/git/test
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-10 18:22:48 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-10 18:22:48 +0100
commit96c6ab4f7572fd5ca8638f3cb6e342d5000955e7 (patch)
tree5f5bf29b1e866892796cffe61d0bc71d00321823 /git/test
parentbfce49feb0be6c69f7fffc57ebdd22b6da241278 (diff)
downloadgitpython-96c6ab4f7572fd5ca8638f3cb6e342d5000955e7.tar.gz
Added search_parent_directories keyword argument to Repo type.
Now by default, we will not walk up the directory structure and possibly find git directories that the user didn't intend to find. If required, that kind of behaviour can be turned back on. Fixes #65
Diffstat (limited to 'git/test')
-rw-r--r--git/test/performance/lib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/performance/lib.py b/git/test/performance/lib.py
index 46a198d4..bb3f7a99 100644
--- a/git/test/performance/lib.py
+++ b/git/test/performance/lib.py
@@ -56,8 +56,8 @@ class TestBigRepoR(TestBase):
"your choice - defaulting to the gitpython repository")
repo_path = os.path.dirname(__file__)
# end set some repo path
- self.gitrorepo = Repo(repo_path, odbt=GitCmdObjectDB)
- self.puregitrorepo = Repo(repo_path, odbt=GitDB)
+ self.gitrorepo = Repo(repo_path, odbt=GitCmdObjectDB, search_parent_directories=True)
+ self.puregitrorepo = Repo(repo_path, odbt=GitDB, search_parent_directories=True)
def tearDown(self):
self.gitrorepo.git.clear_cache()