git-annex/Database
Joey Hess f54c58f0df
Avoid crashing when run in a bare git repo that somehow contains an index file
Do not populate the keys database with associated files,
because a bare repo has no working tree, and so it does not make sense to
populate it.

Queries of associated files in the keys database always return empty lists
in a bare repo, even if it's somehow populated. One way it could be
populated is if a user converts a non-bare repo to a bare repo.

Note that Git.Config.isBare does a string comparison, so this is not free!
But, that string comparison is very small compared to a sqlite query.

Sponsored-by: Erik Bjäreholt on Patreon
2022-01-11 13:01:49 -04:00
..
Keys remove unused code 2021-07-30 18:01:36 -04:00
Benchmark.hs eliminate single/multi writer distinction 2021-10-20 12:26:30 -04:00
ContentIdentifier.hs eliminate single/multi writer distinction 2021-10-20 12:26:30 -04:00
Export.hs eliminate single/multi writer distinction 2021-10-20 12:26:30 -04:00
Fsck.hs eliminate single/multi writer distinction 2021-10-20 12:26:30 -04:00
Handle.hs avoid using a second db connection for writes 2021-10-20 12:32:46 -04:00
Init.hs more RawFilePath conversion 2020-11-05 18:45:37 -04:00
Keys.hs Avoid crashing when run in a bare git repo that somehow contains an index file 2022-01-11 13:01:49 -04:00
Queue.hs eliminate single/multi writer distinction 2021-10-20 12:26:30 -04:00
Types.hs simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00