OsPath transition Windows build fixes
This gets it building on Windows again, with 1 test suite failure (addurl). Sponsored-by: Kevin Mueller
This commit is contained in:
parent
9dc43396b3
commit
a149336a59
23 changed files with 58 additions and 62 deletions
|
@ -468,12 +468,13 @@ isPointerFile f = catchDefaultIO Nothing $
|
|||
- than .git to be used.
|
||||
-}
|
||||
isLinkToAnnex :: S.ByteString -> Bool
|
||||
isLinkToAnnex s = p `OS.isInfixOf` (toOsPath s)
|
||||
isLinkToAnnex s = p `OS.isInfixOf` s'
|
||||
#ifdef mingw32_HOST_OS
|
||||
-- '/' is used inside pointer files on Windows, not the native '\'
|
||||
|| p' `OS.isInfixOf` s
|
||||
|| p' `OS.isInfixOf` s'
|
||||
#endif
|
||||
where
|
||||
s' = toOsPath s
|
||||
p = pathSeparator `OS.cons` objectDir
|
||||
#ifdef mingw32_HOST_OS
|
||||
p' = toInternalGitPath p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue