Skip to content

Commit

Permalink
use proper file-path in git-settings for siblings
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-monch committed May 7, 2024
1 parent f4d13a1 commit ac7eecc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion datalad_next/patches/replace_create_sibling_ria.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,8 @@ def _create_sibling_ria(
'externaltype=ora',
'encryption=none',
'autoenable=true',
# De-canonify the URL, because git-annex expects the path anchor in
# the netloc position.
f'url={de_canonify_url(url)}']
if push_url:
special_remote_options.append(f'push-url={de_canonify_url(push_url)}')
Expand Down Expand Up @@ -765,7 +767,9 @@ def _create_sibling_ria(
yield from ds.siblings(
'configure',
name=name,
url=str(repo_path) if url.startswith("ria+file") else git_url,
url=str(LocalIO().url2transport_path(repo_path))
if url.startswith("ria+file")
else git_url,
pushurl=git_push_url,
recursive=False,
# Note, that this should be None if storage_sibling was not set
Expand Down

0 comments on commit ac7eecc

Please sign in to comment.