Skip to content

Commit

Permalink
convert URL-config path to local path for access
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-monch committed May 3, 2024
1 parent 4899035 commit 80f7dee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions datalad_next/patches/fix_ria_ora_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def patched_postclonetest_prepare(lcl, storepath, storepath2, link):
create_ds_in_store(io, ppp_storepath2, d.id, '2', '1')
d.create_sibling_ria(url2, "anotherstore", new_store_ok=True)
d.push('.', to='anotherstore', data='nothing')
store2_loc, _, _ = get_layout_locations(1, storepath2, d.id)
store2_loc, _, _ = get_layout_locations(1, ppp_storepath2, d.id)
Runner(cwd=str(store2_loc)).run(['git', 'update-server-info'])

# Now the store to clone from:
Expand Down Expand Up @@ -151,7 +151,7 @@ def patched_postclonetest_prepare(lcl, storepath, storepath2, link):
'store-storage',
'autoenable=false'])
d.push('.', to='store')
store_loc, _, _ = get_layout_locations(1, storepath, d.id)
store_loc, _, _ = get_layout_locations(1, ppp_storepath, d.id)
Runner(cwd=str(store_loc)).run(['git', 'update-server-info'])

link.unlink()
Expand Down
2 changes: 1 addition & 1 deletion datalad_next/patches/replace_create_sibling_ria.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def _create_sibling_ria(
except CommandError:
exists = False
else:
exists = url_path2local_path(config_path).exists()
exists = LocalIO().url2transport_path(config_path).exists()

if exists:
if existing == 'skip':
Expand Down

0 comments on commit 80f7dee

Please sign in to comment.