remove stateDir

This commit is contained in:
Joey Hess 2011-06-23 08:48:13 -04:00
parent af10b2854a
commit 9e37898e21
5 changed files with 13 additions and 20 deletions

View file

@ -89,3 +89,9 @@ gitAttributesUnWrite repo = do
liftIO $ safeWriteFile attributes $ unlines $
filter (\l -> not $ l `elem` attrLines) $ lines c
Git.run repo "add" [File attributes]
stateDir :: FilePath
stateDir = addTrailingPathSeparator $ ".git-annex"
gitStateDir :: Git.Repo -> FilePath
gitStateDir repo = addTrailingPathSeparator $ Git.workTree repo </> stateDir