now finds files in git or not depending on what command wants

This commit is contained in:
Joey Hess 2010-10-16 14:58:35 -04:00
parent bfa581a218
commit e80160380a
3 changed files with 41 additions and 32 deletions

View file

@ -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