git-annex/Git
Joey Hess 9621beabc4
cache credentials in memory when doing http basic auth to a git remote
When accessing a git remote over http needs a git credential prompt for a
password, cache it for the lifetime of the git-annex process, rather than
repeatedly prompting.

The git-lfs special remote already caches the credential when discovering
the endpoint. And presumably commands like git pull do as well, since they
may download multiple urls from a remote.

The TMVar CredentialCache is read, so two concurrent calls to
getBasicAuthFromCredential will both prompt for a credential.
There would already be two concurrent password prompts in such a case,
and existing uses of `prompt` probably avoid it. Anyway, it's no worse
than before.
2022-09-09 14:20:32 -04:00
..
Command
Remote
AutoCorrect.hs
Branch.hs
BuildVersion.hs
CatFile.hs
CheckAttr.hs
CheckIgnore.hs
Command.hs convert some error to giveup 2021-12-09 14:36:54 -04:00
Config.hs debug output of git security check probe 2022-05-31 12:25:11 -04:00
ConfigTypes.hs
Construct.hs
Credential.hs cache credentials in memory when doing http basic auth to a git remote 2022-09-09 14:20:32 -04:00
CurrentRepo.hs
DiffTree.hs
DiffTreeItem.hs
Env.hs
FileMode.hs
Filename.hs
FilePath.hs
FilterProcess.hs filter-process: Fix protocol for empty files 2022-07-13 17:13:54 -04:00
Fsck.hs
GCrypt.hs
HashObject.hs
History.hs
Hook.hs
Index.hs
LockFile.hs
LsFiles.hs convert some error to giveup 2021-12-09 14:36:54 -04:00
LsTree.hs
Merge.hs
Objects.hs
PktLine.hs update 2021-11-05 10:53:11 -04:00
Queue.hs Avoid git status taking a long time after git-annex unlock of many files. 2022-02-18 15:06:40 -04:00
Ref.hs
RefLog.hs
Remote.hs
Repair.hs improve createDirectoryUnder to allow alternate top directories 2022-08-12 12:52:37 -04:00
Sha.hs
Ssh.hs
Status.hs
Tree.hs
Types.hs
UnionMerge.hs
UpdateIndex.hs
Url.hs
Version.hs