File tree 1 file changed +2
-3
lines changed
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):
419
419
symbol_ref_path = "refs/symbol_ref"
420
420
symref = SymbolicReference (rw_repo , symbol_ref_path )
421
421
assert symref .path == symbol_ref_path
422
- symbol_ref_abspath = os .path .join (rw_repo .root_path (), symref .path )
423
422
424
423
# set it
425
424
symref .reference = new_head
426
425
assert symref .reference == new_head
427
- assert os .path .isfile (symbol_ref_abspath )
426
+ assert os .path .isfile (symref . abspath )
428
427
assert symref .commit == new_head .commit
429
428
430
429
for name in ('absname' ,'folder/rela_name' ):
@@ -476,7 +475,7 @@ def test_head_reset(self, rw_repo):
476
475
rw_repo .head .reference = Head .create (rw_repo , "master" )
477
476
478
477
# 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 )
480
479
refs = list (SymbolicReference .iter_items (rw_repo ))
481
480
assert len (refs ) == 1
482
481
You can’t perform that action at this time.
0 commit comments