From c05ef0e7543c2845fd431420509476537fefe2b0 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 3 Dec 2009 16:31:07 +0100 Subject: repo: renamed directories to more descriptive identifiers and made them safer to use in case of bare repositories --- test/testlib/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/testlib') 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() -- cgit v1.2.3