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

fix: perform proper provision in an annex remote #79

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

christian-monch
Copy link
Contributor

@christian-monch christian-monch commented Jan 7, 2025

Fixes #69
Fixes #78

This PR fixes an issue where subdataset provision did not work if provision was invoked from an annex special remote-process.

The reason for the error was that the special remote sets the environment variables GIT_DIR and
GIT_WORK_TREE, which lead to problems in
datalad.get.

This commit fixes an issue where subdataset provision
did not work if `provision` was invoked from an annex
special remote-process.

The reason for the error was that the special remote
sets the environment variables `GIT_DIR` and
`GIT_WORK_TREE`, which lead to problems in
`datalad.get`.
@codecov-commenter
Copy link

codecov-commenter commented Jan 7, 2025

Codecov Report

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

Project coverage is 91.55%. Comparing base (a2d2351) to head (9499637).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
datalad_remake/utils/patched_env.py 85.71% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #79   +/-   ##
=======================================
  Coverage   91.55%   91.55%           
=======================================
  Files          24       25    +1     
  Lines        1030     1054   +24     
  Branches       84       86    +2     
=======================================
+ Hits          943      965   +22     
- Misses         62       63    +1     
- Partials       25       26    +1     

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

@christian-monch christian-monch marked this pull request as ready for review January 7, 2025 12:24
@christian-monch christian-monch merged commit 776f9eb into datalad:main Jan 7, 2025
6 checks passed
@christian-monch christian-monch deleted the debug-provision branch January 7, 2025 12:25
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.

Unable to get from dataset with a subdataset Dataset.status fails in git-annex-remote-datalad-remake
2 participants