Skip to content

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

Description

@mih

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"}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions