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/git/test_remote.py | |
parent | 1eae9d1532e037a4eb08aaee79ff3233d2737f31 (diff) | |
download | gitpython-c05ef0e7543c2845fd431420509476537fefe2b0.tar.gz |
repo: renamed directories to more descriptive identifiers and made them safer to use in case of bare repositories
Diffstat (limited to 'test/git/test_remote.py')
-rw-r--r-- | test/git/test_remote.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |