better syntax

This commit is contained in:
Joey Hess 2011-12-10 20:53:42 -04:00
parent f44f715f51
commit 583ba80992

View file

@ -87,7 +87,7 @@ gitAnnexLocation key r
- present. -}
return $ inrepo ".git" </> annexLocation key hashDirMixed
where
inrepo = (</>) (Git.workTree r)
inrepo d = Git.workTree r </> d
check locs = fromMaybe (head locs) <$> firstM doesFileExist locs
{- The annex directory of a repository. -}