aboutsummaryrefslogtreecommitdiff
path: root/Annex/Branch.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-01-06 17:34:02 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-01-06 17:34:02 -0400
commit6ea1214fa5d19241851a977ab82437563e2afc81 (patch)
tree7e2b68a42617f55466d777a9e997de848bd40f83 /Annex/Branch.hs
parent834e27580383e4fa74f72e73448f8c5fc3c8e541 (diff)
absolute path to index file; test suite passes
There are still known problems; for example git annex view a=b fails when run in a subdir of the repo.
Diffstat (limited to 'Annex/Branch.hs')
-rw-r--r--Annex/Branch.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/Branch.hs b/Annex/Branch.hs
index c567db554..f5c490212 100644
--- a/Annex/Branch.hs
+++ b/Annex/Branch.hs
@@ -334,7 +334,7 @@ withIndex :: Annex a -> Annex a
withIndex = withIndex' False
withIndex' :: Bool -> Annex a -> Annex a
withIndex' bootstrapping a = do
- f <- fromRepo gitAnnexIndex
+ f <- liftIO . absPath =<< fromRepo gitAnnexIndex
withIndexFile f $ do
checkIndexOnce $ unlessM (liftIO $ doesFileExist f) $ do
unless bootstrapping create