use a subdirectory of annex.dbdir

This allows annex.dbdir to be set globally or always set to the same
value when needed. Each repository uses a subdirectory of it.

Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
Joey Hess 2022-08-12 13:18:15 -04:00
parent 16e82f6cf9
commit 4cfe17a9e8
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 15 additions and 6 deletions

View file

@ -3,11 +3,14 @@
subject="""comment 12"""
date="2022-08-12T17:07:51Z"
content="""
annex.dbdir is now implemented.
annex.dbdir is now implemented. Note that it can safely be set to the same
path in several repositories. If all your repositories were on cifs,
you could even set it globally.
This issue remains open because `git-annex init` ought to probe to
determine when sqlite cannot be used on the repository's filesystem.
I don't think it could itself set annex.dbdir to work around the
problem, because what would it set it to? But it could explain the problem
to the user and suggest that they set it.
problem, because what would it set it to? Maybe
`~/.cache/git-annex/something`? Seems better for it to explain the
problem to the user and suggest that they set it.
"""]]