File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -419,12 +419,11 @@ def test_head_reset(self, rw_repo):
419419 symbol_ref_path = "refs/symbol_ref"
420420 symref = SymbolicReference (rw_repo , symbol_ref_path )
421421 assert symref .path == symbol_ref_path
422- symbol_ref_abspath = os .path .join (rw_repo .root_path (), symref .path )
423422
424423 # set it
425424 symref .reference = new_head
426425 assert symref .reference == new_head
427- assert os .path .isfile (symbol_ref_abspath )
426+ assert os .path .isfile (symref . abspath )
428427 assert symref .commit == new_head .commit
429428
430429 for name in ('absname' ,'folder/rela_name' ):
@@ -476,7 +475,7 @@ def test_head_reset(self, rw_repo):
476475 rw_repo .head .reference = Head .create (rw_repo , "master" )
477476
478477 # At least the head should still exist
479- assert os .path .isfile (os . path . join ( rw_repo .root_path (), 'HEAD' ) )
478+ assert os .path .isfile (rw_repo .head . abspath )
480479 refs = list (SymbolicReference .iter_items (rw_repo ))
481480 assert len (refs ) == 1
482481
You can’t perform that action at this time.
0 commit comments