From f895adbb05c711f3a94eb366c240f1d3d66b4f9f Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Tue, 6 Sep 2022 21:02:01 +0000 Subject: [PATCH] initial todo on multiple passwords entry for get --- ...redentials_for_password_per_each_file.mdwn | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 doc/todo/not_ask_git_credentials_for_password_per_each_file.mdwn diff --git a/doc/todo/not_ask_git_credentials_for_password_per_each_file.mdwn b/doc/todo/not_ask_git_credentials_for_password_per_each_file.mdwn new file mode 100644 index 0000000000..27209b5098 --- /dev/null +++ b/doc/todo/not_ask_git_credentials_for_password_per_each_file.mdwn @@ -0,0 +1,33 @@ +ATM, git-annex asks for a possibly stored credential for a remote per each file, even if they are to come from the same remote. IMHO it should cache for that `get` run the password to be reused if some next file is to be obtained from the same (git) remote. + +``` +lena:/tmp +$> git clone http://data.pymvpa.org/tmp/sampleds/.git/ +Cloning into 'sampleds'... +Username for 'http://data.pymvpa.org': yoh +Password for 'http://yoh@data.pymvpa.org': +Fetching objects: 50, done. + +$> cd sampleds + +$> git annex get *dat +Username for 'http://data.pymvpa.org': yoh +Password for 'http://yoh@data.pymvpa.org': +get 123.dat (from origin...) +Username for 'http://data.pymvpa.org': yoh +Password for 'http://yoh@data.pymvpa.org': +ok +get 1.dat (from origin...) +Username for 'http://data.pymvpa.org': ^C +``` + +and `annex --debug` shows that each password prompt due to + +``` +[2022-09-06 16:58:31.99087915] (Utility.Process) process [139934] chat: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","-c","annex.debug=true","credential","fill"] +``` + +and wondered if such excessive prompting could be avoided without engaging `git` credentials caching functionality. + +[[!meta author=yoh]] +[[!tag projects/repronim]]