summaryrefslogtreecommitdiff
path: root/Upgrade/V2.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-23 08:48:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-23 08:48:13 -0400
commit9e37898e2186c8f7bb71a5d2bd7a02303410b363 (patch)
treea964c45d443c3ecaa6dea61b48caa996b8b3552b /Upgrade/V2.hs
parentaf10b2854a199ed9985cde938d46b252f4d5e503 (diff)
remove stateDir
Diffstat (limited to 'Upgrade/V2.hs')
-rw-r--r--Upgrade/V2.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Upgrade/V2.hs b/Upgrade/V2.hs
index 36ba1a0f2..7e4cfb13a 100644
--- a/Upgrade/V2.hs
+++ b/Upgrade/V2.hs
@@ -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
+