RawFilePath conversion

May slightly speed up startup.
This commit is contained in:
Joey Hess 2023-10-26 13:53:43 -04:00
parent b0302c937d
commit e4ef688b98
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 12 additions and 10 deletions

View file

@ -95,4 +95,4 @@ initRepo' desc mgroup = unlessM isInitialized $ do
{- Checks if a git repo exists at a location. -}
probeRepoExists :: FilePath -> IO Bool
probeRepoExists dir = isJust <$>
catchDefaultIO Nothing (Git.Construct.checkForRepo dir)
catchDefaultIO Nothing (Git.Construct.checkForRepo (encodeBS dir))