tweak
This commit is contained in:
parent
97b31a525e
commit
8f069bd287
2 changed files with 4 additions and 4 deletions
2
Annex.hs
2
Annex.hs
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue