RawFilePath version of getCurrentDirectory
This commit was sponsored by Jochen Bartl on Patreon
This commit is contained in:
parent
08cbaee1f8
commit
6c29817748
5 changed files with 26 additions and 8 deletions
|
@ -66,10 +66,10 @@ get = do
|
|||
|
||||
configure Nothing (Just r) = Git.Config.read r
|
||||
configure (Just d) _ = do
|
||||
absd <- absPath d
|
||||
absd <- absPath (fromRawFilePath d)
|
||||
curr <- getCurrentDirectory
|
||||
loc <- adjustGitDirFile $ Local
|
||||
{ gitdir = toRawFilePath absd
|
||||
{ gitdir = absd
|
||||
, worktree = Just (toRawFilePath curr)
|
||||
}
|
||||
r <- Git.Config.read $ newFrom loc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue