diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2009-12-03 16:31:07 +0100 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2009-12-03 16:31:07 +0100 |
| commit | c05ef0e7543c2845fd431420509476537fefe2b0 (patch) | |
| tree | 75393ae080690acd035108d698d3c5a467076ebb /test/testlib | |
| parent | 1eae9d1532e037a4eb08aaee79ff3233d2737f31 (diff) | |
| download | GitPython-c05ef0e7543c2845fd431420509476537fefe2b0.tar.gz GitPython-c05ef0e7543c2845fd431420509476537fefe2b0.zip | |
repo: renamed directories to more descriptive identifiers and made them safer to use in case of bare repositories
Diffstat (limited to 'test/testlib')
| -rw-r--r-- | test/testlib/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testlib/helper.py b/test/testlib/helper.py index e33961a7..da4a4207 100644 --- a/test/testlib/helper.py +++ b/test/testlib/helper.py @@ -241,7 +241,7 @@ class TestBase(TestCase): with the given data. Returns absolute path to created file. """ repo = repo or self.rorepo - abs_path = os.path.join(repo.git.git_dir, rela_path) + abs_path = os.path.join(repo.working_tree_dir, rela_path) fp = open(abs_path, "w") fp.write(data) fp.close() |
