datalad icon indicating copy to clipboard operation
datalad copied to clipboard

configuration credentials.force-ask are taken from global and not specific repository

Open jbpoline opened this issue 2 years ago • 1 comments

What is the problem?

I used datalad configuration credentials.force-ask=true which was saved in .git/config but that was not taken in effect when l tried create sibling-github

Happens because datalad uses process wide config not repo specific config https://github.com/datalad/datalad/blob/master/datalad/downloaders/credentials.py#L188

What steps will reproduce the problem?

No response

Datalad information

0.16.5

Additional context

No response

Have you had any success using DataLad before?

No response

jbpoline avatar Jun 17 '22 11:06 jbpoline

Sorry JB, I believe this got lost over OHBM and was then buried in COVID.

Happens because datalad uses process wide config not repo specific config https://github.com/datalad/datalad/blob/master/datalad/downloaders/credentials.py#L188

That makes sense, thanks for providing an error analysis already! Tagging @mih nevertheless, because he has worked on credentials most recently and might know secrets I don't - any other thoughts on this?

adswa avatar Jul 20 '22 09:07 adswa