This commit is contained in:
Joey Hess 2010-10-12 02:40:09 -04:00
parent 97b31a525e
commit 8f069bd287
2 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ annexDir repo key = gitDir repo ++ "/annex/" ++ key
- later. -}
startAnnex :: IO State
startAnnex = do
r <- gitRepoCurrent
r <- gitRepoFromCwd
gitPrep r
return State {

View file

@ -7,7 +7,7 @@
module GitRepo (
GitRepo,
gitRepoCurrent,
gitRepoFromCwd,
gitRepoFromPath,
gitRepoFromUrl,
gitWorkTree,
@ -183,8 +183,8 @@ gitConfigRemotes repo = mapM construct remotes
else gitRepoFromPath r
{- Finds the current git repository, which may be in a parent directory. -}
gitRepoCurrent :: IO GitRepo
gitRepoCurrent = do
gitRepoFromCwd :: IO GitRepo
gitRepoFromCwd = do
cwd <- getCurrentDirectory
top <- seekUp cwd isRepoTop
case top of