aboutsummaryrefslogtreecommitdiff
path: root/git-annex.hs
diff options
context:
space:
mode:
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