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

status --annex basic <untrackedfile> fails with unnecessary annex call #7032

Closed
mih opened this issue Sep 13, 2022 · 1 comment · Fixed by #7166
Closed

status --annex basic <untrackedfile> fails with unnecessary annex call #7032

mih opened this issue Sep 13, 2022 · 1 comment · Fixed by #7166

Comments

@mih
Copy link
Member

mih commented Sep 13, 2022

I have an untracked file in a dataset:

$ datalad -f json status -d .  this
{"action": "status", "parentds": "/tmp/top1", "path": "/tmp/top1/this",
"refds": "/tmp/top1", "state": "untracked", "status": "ok", "type": "file"}

When I ask for --annex basic it attempts to run annex for this file,
although it could not possibly be in annex.

$ datalad -f json status -d . --annex basic this
{"action": "status", "command": "find",
"error_message": "File unknown to git", "note": "not found",
"parentds": "/tmp/top1", "path": "/tmp/top1/this", "refds": "/tmp/top1",
"state": "untracked", "status": "ok", "success": false, "type": "file"}
@mih mih added the cmd-status label Sep 13, 2022
adswa added a commit to adswa/datalad that referenced this issue Nov 10, 2022
Fixes datalad#7032. When datalad status --annex is called on an untracked
file specifically, it will invoke an annex query that we already know
will fail. This commit adds a check if any specifically added file as a
path is untracked, and if so, prevent the annex query from being run on
it.
adswa added a commit to adswa/datalad that referenced this issue Nov 10, 2022
Fixes datalad#7032. When datalad status --annex is called on an untracked
file specifically, it will invoke an annex query that we already know
will fail. This commit adds a check if any specifically added file as a
path is untracked, and if so, prevent the annex query from being run on
it.
christian-monch pushed a commit to christian-monch/datalad that referenced this issue Nov 15, 2022
Fixes datalad#7032. When datalad status --annex is called on an untracked
file specifically, it will invoke an annex query that we already know
will fail. This commit adds a check if any specifically added file as a
path is untracked, and if so, prevent the annex query from being run on
it.
adswa added a commit to adswa/datalad that referenced this issue Nov 17, 2022
Fixes datalad#7032. When datalad status --annex is called on an untracked
file specifically, it will invoke an annex query that we already know
will fail. This commit adds a check if any specifically added file as a
path is untracked, and if so, prevent the annex query from being run on
it.
adswa added a commit to adswa/datalad that referenced this issue Nov 21, 2022
Fixes datalad#7032. When datalad status --annex is called on an untracked
file specifically, it will invoke an annex query that we already know
will fail. This commit adds a check if any specifically added file as a
path is untracked, and if so, prevent the annex query from being run on
it.
@yarikoptic-gitmate
Copy link
Collaborator

Issue fixed in 0.17.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants