aboutsummaryrefslogtreecommitdiff
path: root/git-annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-17 11:47:36 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-17 11:47:36 -0400
commitb471822cfe4476995f539c6e7e7da7f7bf2b5e02 (patch)
tree31963b299051850ee0514dfec9a655e4a326c503 /git-annex.hs
parent6bfa534aa4d7552c4ccfdb9523b55da19fac8883 (diff)
move supportedBackends list into annex monad
This was necessary so the File backend could import Backend w/o a cycle. Moved code that checks whether enough backends have a file into File backend.
Diffstat (limited to 'git-annex.hs')
-rw-r--r--git-annex.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-annex.hs b/git-annex.hs
index f4f0cfcdf..947868f23 100644
--- a/git-annex.hs
+++ b/git-annex.hs
@@ -9,11 +9,12 @@ import Types
import Core
import Commands
import qualified GitRepo as Git
+import BackendList
main = do
args <- getArgs
gitrepo <- Git.repoFromCwd
- state <- Annex.new gitrepo
+ state <- Annex.new gitrepo allBackends
(flags, actions) <- parseCmd args state
tryRun state $ [startup flags] ++ actions ++ [shutdown]