RawFilePath version of getCurrentDirectory

This commit was sponsored by Jochen Bartl on Patreon
This commit is contained in:
Joey Hess 2020-10-28 16:03:45 -04:00
parent 08cbaee1f8
commit 6c29817748
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 26 additions and 8 deletions

View file

@ -12,6 +12,7 @@ import Git
import Git.Command
import Utility.Path.AbsRel
import qualified Utility.CoProcess as CoProcess
import qualified Utility.RawFilePath as R
import System.IO.Error
import qualified Data.ByteString as B
@ -24,7 +25,7 @@ type Attr = String
- values and returns a handle. -}
checkAttrStart :: [Attr] -> Repo -> IO CheckAttrHandle
checkAttrStart attrs repo = do
currdir <- toRawFilePath <$> getCurrentDirectory
currdir <- R.getCurrentDirectory
h <- gitCoProcessStart True params repo
return (h, attrs, currdir)
where