match also / path separator on windows

This commit is contained in:
Joey Hess 2019-12-11 17:08:08 -04:00
parent c19211774f
commit cee0d738fc
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -112,7 +112,7 @@ journalFile :: RawFilePath -> Git.Repo -> RawFilePath
journalFile file repo = gitAnnexJournalDir' repo P.</> S.map mangle file
where
mangle c
| c == P.pathSeparator = fromIntegral (ord '_')
| P.isPathSeparator c = fromIntegral (ord '_')
| otherwise = c
{- Converts a journal file (relative to the journal dir) back to the