Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rf: use a single patched_env in annex remote #84

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

christian-monch
Copy link
Contributor

This PR restricts the use of patched_env to the annex remote. The complete "TRANSFER RETRIEVE" implementation is wrapped into a single patched_env context.

patched_env became necessary because datalad's Dataset.get will not work properly if the environment variables GIT_DIR and GIT_WORK_TREE are set.

This commit restricts the use of `patched_env`
to the annex remote. The complete
"TRANSFER RETRIEVE" implementation is wrapped
into a single `patched_env` context.

`patched_env` became necessary because datalad's
`Dataset.get` will not work properly if the
environment variables `GIT_DIR` and
`GIT_WORK_TREE` are set.
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 91.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 91.28%. Comparing base (4e44a2a) to head (21ae62b).

Files with missing lines Patch % Lines
datalad_remake/annexremotes/remake_remote.py 91.30% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
- Coverage   91.30%   91.28%   -0.03%     
==========================================
  Files          26       26              
  Lines        1081     1078       -3     
  Branches       87       87              
==========================================
- Hits          987      984       -3     
  Misses         65       65              
  Partials       29       29              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@christian-monch christian-monch merged commit ff8bcdb into datalad:main Jan 19, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants