improve createDirectoryUnder to allow alternate top directories
This should not change the behavior of it, unless there are multiple top directories, and then it should behave the same as if there was a single top directory that was actually above the directory to be created. Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
parent
e60766543f
commit
23c6e350cb
12 changed files with 44 additions and 41 deletions
|
@ -40,7 +40,7 @@ initDb db migration = do
|
|||
Just topdbdir -> pure $ parentDir $ topdbdir
|
||||
Nothing -> parentDir <$> fromRepo gitAnnexDir
|
||||
liftIO $ do
|
||||
createDirectoryUnder top tmpdbdir
|
||||
createDirectoryUnder [top] tmpdbdir
|
||||
runSqliteInfo (enableWAL tdb) migration
|
||||
setAnnexDirPerm tmpdbdir
|
||||
-- Work around sqlite bug that prevents it from honoring
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue