summaryrefslogtreecommitdiff
path: root/Remote/Git.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Remote/Git.hs')
-rw-r--r--Remote/Git.hs8
1 files changed, 2 insertions, 6 deletions
diff --git a/Remote/Git.hs b/Remote/Git.hs
index 35928b96c..79439b784 100644
--- a/Remote/Git.hs
+++ b/Remote/Git.hs
@@ -179,12 +179,8 @@ repoAvail r
- monad using that repository. -}
onLocal :: Git.Repo -> Annex a -> IO a
onLocal r a = do
- -- Avoid re-reading the repository's configuration if it was
- -- already read.
- state <- if M.null $ Git.config r
- then Annex.new r
- else return $ Annex.newState r
- Annex.eval state $ do
+ s <- Annex.new r
+ Annex.eval s $ do
-- No need to update the branch; its data is not used
-- for anything onLocal is used to do.
Annex.BranchState.disableUpdate