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

if update of dandiset fails, reset --hard to the prior state #19

Open
yarikoptic opened this issue Nov 5, 2020 · 0 comments
Open

if update of dandiset fails, reset --hard to the prior state #19

yarikoptic opened this issue Nov 5, 2020 · 0 comments

Comments

@yarikoptic
Copy link
Member

Relates to #18 -- ATM I ended up with the following history

commit 93c8ea7066e66600952e619243608df0be7dbd76 (HEAD -> master, github/master)
Author: DANDI Meta-user <[email protected]>
Date:   Wed Nov 4 13:12:09 2020 -0500

    Ran backups2datalad.py
    
    3 files deleted

 .dandi/assets.json                                                          | 171 -----------------------------------------------------------------------------------------------------------------------------------------------
 sub-YutaMouse23/sub-YutaMouse23_ses-YutaMouse23-140804_behavior+ecephys.nwb |   1 -
 sub-YutaMouse23/sub-YutaMouse23_ses-YutaMouse23-140805_behavior+ecephys.nwb |   1 -
 sub-YutaMouse23/sub-YutaMouse23_ses-YutaMouse23-140806_behavior+ecephys.nwb |   1 -
 4 files changed, 174 deletions(-)

so we got asset.json removed... AFAIK shouldn't happen. I think the best strategy would be to just revert back completely to the state before even attempting to update

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

No branches or pull requests

1 participant