]> dgit.raspbian.org Git - git-annex.git/commitdiff
initial todo on multiple passwords entry for get
authoryarikoptic <yarikoptic@web>
Tue, 6 Sep 2022 21:02:01 +0000 (21:02 +0000)
committeradmin <admin@branchable.com>
Tue, 6 Sep 2022 21:02:01 +0000 (21:02 +0000)
doc/todo/not_ask_git_credentials_for_password_per_each_file.mdwn [new file with mode: 0644]

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 (file)
index 0000000..27209b5
--- /dev/null
@@ -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]]