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/git/test_remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/git/test_remote.py') diff --git a/test/git/test_remote.py b/test/git/test_remote.py index 4849dfd0..edbf758c 100644 --- a/test/git/test_remote.py +++ b/test/git/test_remote.py @@ -62,7 +62,7 @@ class TestPushProgress(PushProgress): class TestRemote(TestBase): def _print_fetchhead(self, repo): - fp = open(os.path.join(repo.path, "FETCH_HEAD")) + fp = open(os.path.join(repo.git_dir, "FETCH_HEAD")) fp.close() @@ -213,7 +213,7 @@ class TestRemote(TestBase): # must clone with a local path for the repo implementation not to freak out # as it wants local paths only ( which I can understand ) other_repo = remote_repo.clone(other_repo_dir, shared=False) - remote_repo_url = "git://localhost%s"%remote_repo.path + remote_repo_url = "git://localhost%s"%remote_repo.git_dir # put origin to git-url other_origin = other_repo.remotes.origin -- cgit v1.2.3