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:
parent
16e82f6cf9
commit
4cfe17a9e8
5 changed files with 15 additions and 6 deletions
|
@ -38,7 +38,7 @@ initDb db migration = do
|
|||
gc <- Annex.getGitConfig
|
||||
top <- parentDir <$> fromRepo gitAnnexDir
|
||||
let tops = case annexDbDir gc of
|
||||
Just topdbdir -> [top, parentDir topdbdir]
|
||||
Just topdbdir -> [top, parentDir (parentDir topdbdir)]
|
||||
Nothing -> [top]
|
||||
liftIO $ do
|
||||
createDirectoryUnder tops tmpdbdir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue