assistant: Fix OSX-specific bug that caused the startup scan to try to follow symlinks to other directories, and add their contents to the annex.
This commit is contained in:
parent
fcf6384389
commit
c99d6a8151
7 changed files with 23 additions and 13 deletions
|
@ -27,7 +27,7 @@ listPackFiles r = filter (".pack" `isSuffixOf`)
|
|||
listLooseObjectShas :: Repo -> IO [Sha]
|
||||
listLooseObjectShas r = catchDefaultIO [] $
|
||||
mapMaybe (extractSha . concat . reverse . take 2 . reverse . splitDirectories)
|
||||
<$> dirContentsRecursiveSkipping (== "pack") (objectsDir r)
|
||||
<$> dirContentsRecursiveSkipping (== "pack") True (objectsDir r)
|
||||
|
||||
looseObjectFile :: Repo -> Sha -> FilePath
|
||||
looseObjectFile r sha = objectsDir r </> prefix </> rest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue