datalad / datalad-gooey

A graphical user interface for DataLad (datalad.org)
https://docs.datalad.org/projects/gooey
Other
4 stars 6 forks source link

Update from GIN fails #343

Open mih opened 1 year ago

mih commented 1 year ago
Running: Dataset('/tmp/myproject').update(how='merge', sibling='gin')

update(error): . (dataset) [Fetch failed: CommandError(CommandError: 'git -c diff.ignoreSubmodules=none fetch --verbose --progress --no-recurse-submodules --prune gin' failed with exitcode 128 under /tmp/myproject [err: 'remote: User permission denied
fatal: unable to access 'https://gin.g-node.org/mih/myprojecttest/': The requested URL returned error: 403'])]


-> Failed: Dataset('/tmp/myproject').update(how='merge', sibling='gin')


The reason might be that this is a private repo, and the sibling was created with the default https+ssh access.

mih commented 1 year ago

I can confirm that this suspicion was correct. All works if access mode is set to ssh for private repos.

This can only be fixed meaningfully once https://github.com/datalad/datalad-gooey/issues/311 is made possible. At that point, there would be a global constraint for the entire parameter set for create-sibling-gin, which would invalidate whenever private is used with any other mode.

Until then the best we could do is document and pray.