diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-06-01 14:48:51 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-06-01 14:48:51 +0200 |
commit | cee55cb5ae6c9b009ff09cb59e56fd7f25152d02 (patch) | |
tree | 3b64443f156ea7d50dd0a389c2ab2b0cd6c440a9 /git | |
parent | 4298468f68876683afd17d50c75ac9ea6ae2ed16 (diff) | |
download | gitpython-cee55cb5ae6c9b009ff09cb59e56fd7f25152d02.tar.gz |
Fixed symref tests to work on osx
Diffstat (limited to 'git')
-rw-r--r-- | git/test/test_refs.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/git/test/test_refs.py b/git/test/test_refs.py index 3e6c0b3a..e49b23ab 100644 --- a/git/test/test_refs.py +++ b/git/test/test_refs.py @@ -419,12 +419,11 @@ class TestRefs(TestBase): symbol_ref_path = "refs/symbol_ref" symref = SymbolicReference(rw_repo, symbol_ref_path) assert symref.path == symbol_ref_path - symbol_ref_abspath = os.path.join(rw_repo.root_path(), symref.path) # set it symref.reference = new_head assert symref.reference == new_head - assert os.path.isfile(symbol_ref_abspath) + assert os.path.isfile(symref.abspath) assert symref.commit == new_head.commit for name in ('absname','folder/rela_name'): @@ -476,7 +475,7 @@ class TestRefs(TestBase): rw_repo.head.reference = Head.create(rw_repo, "master") # At least the head should still exist - assert os.path.isfile(os.path.join(rw_repo.root_path(), 'HEAD')) + assert os.path.isfile(rw_repo.head.abspath) refs = list(SymbolicReference.iter_items(rw_repo)) assert len(refs) == 1 |