export CreateProcess fields from Utility.Process

update code to avoid cwd and env redefinition warnings
This commit is contained in:
Joey Hess 2014-06-10 19:20:14 -04:00
parent 6eb5e6c135
commit a44fd2c019
31 changed files with 458 additions and 480 deletions

View file

@ -116,11 +116,11 @@ defaultRepositoryPath :: Bool -> IO FilePath
defaultRepositoryPath firstrun = do
#ifndef mingw32_HOST_OS
home <- myHomeDir
cwd <- liftIO getCurrentDirectory
if home == cwd && firstrun
currdir <- liftIO getCurrentDirectory
if home == currdir && firstrun
then inhome
else ifM (legit cwd <&&> canWrite cwd)
( return cwd
else ifM (legit currdir <&&> canWrite currdir)
( return currdir
, inhome
)
#else