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

Auto-setup publication dependencies between git and annex remotes #111

Open
mih opened this issue Jul 4, 2020 · 0 comments
Open

Auto-setup publication dependencies between git and annex remotes #111

mih opened this issue Jul 4, 2020 · 0 comments

Comments

@mih
Copy link
Member

mih commented Jul 4, 2020

This becomes relevant after a merge of #106 and is related to datalad/datalad#4676

It should be easy enough with a pre-configured result hook, and a dataset procedure (cfg_osf_clone). Matching is trivial: host of the git-url matches node of the special remote configuration.

/tmp % datalad -f json_pp clone osf://q8xnk man
[INFO   ] Scanning for unlocked files (this may take some time)                              
{
  "action": "install",
  "path": "/tmp/man",
  "source": {
    "default_destpath": "q8xnk",
    "giturl": "osf://q8xnk",
    "source": "osf://q8xnk",
    "type": "giturl",
    "version": null
  },
  "source_url": "osf://q8xnk",
  "status": "ok",
  "type": "dataset"
}

/tmp % cd man
/tmp/man (git)-[master] % git cat-file blob git-annex:remote.log
7784367b-69c6-483d-9564-67f840715890 autoenable=true encryption=none externaltype=osf name=osf-storage node=q8xnk type=external timestamp=1593366915.629687527s
@adswa adswa mentioned this issue Jul 16, 2020
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