avoid unncessary IO
This commit is contained in:
parent
ecf7ef3ff2
commit
52e40970c8
6 changed files with 15 additions and 17 deletions
|
@ -50,8 +50,8 @@ get = do
|
|||
configure (Just d) _ = do
|
||||
absd <- absPath d
|
||||
curr <- getCurrentDirectory
|
||||
r <- newFrom $ Local { gitdir = absd, worktree = Just curr }
|
||||
Git.Config.read r
|
||||
Git.Config.read $ newFrom $
|
||||
Local { gitdir = absd, worktree = Just curr }
|
||||
configure Nothing Nothing = error "Not in a git repository."
|
||||
|
||||
addworktree w r = changelocation r $
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue