Skip to content

create -d DSPATH -c procedure SUBDSPATH leaves DSPATH dirty #3591

@yarikoptic

Description

@yarikoptic

I guess either save for adding a new subdataset comes too early (before calling the cfg_ procedure) or we need a second save to store adjusted (by the procedure) state.

$> datalad create /tmp/testds && datalad create -d /tmp/testds -c text2git subds  && datalad -C /tmp/testds status
[INFO   ] Creating a new annex repo at /tmp/testds 
create(ok): /tmp/testds (dataset)                                                                               
[INFO   ] Creating a new annex repo at /tmp/testds/subds 
create(ok): subds (dataset)                                                                                     
[INFO   ] Running procedure cfg_text2git 
[INFO   ] == Command start (output follows) ===== 
[INFO   ] == Command exit (modification check follows) ===== 
action summary:
  add (ok: 2)
  create (ok: 1)
  save (ok: 1)
 modified: subds (dataset)

DataLad 0.12.0rc4-327-g6307824f2
NB Ran into while testing a use case workflow using reproman run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fix-implementedA fix is available, but has not been merged or released, yet.severity-normalstandard severity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions