aboutsummaryrefslogtreecommitdiff
path: root/git-annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-16 14:58:35 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-16 14:58:35 -0400
commite80160380a16fbeb38f21f4683917b49a9221a91 (patch)
treef309eb102278191039a6f9690f72e579f7ceb1f0 /git-annex.hs
parentbfa581a218719c46dbc19a212a005b0cf2e145c2 (diff)
now finds files in git or not depending on what command wants
Diffstat (limited to 'git-annex.hs')
-rw-r--r--git-annex.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-annex.hs b/git-annex.hs
index cd67242af..01416f6dd 100644
--- a/git-annex.hs
+++ b/git-annex.hs
@@ -12,9 +12,9 @@ import qualified GitRepo as Git
main = do
args <- getArgs
- (flags, actions) <- parseCmd args
gitrepo <- Git.repoFromCwd
state <- new gitrepo
+ (flags, actions) <- parseCmd args state
tryRun state $ [startup flags] ++ actions ++ [shutdown]
{- Runs a list of Annex actions. Catches exceptions, not stopping