From 6ea1214fa5d19241851a977ab82437563e2afc81 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 6 Jan 2015 17:34:02 -0400 Subject: 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. --- Annex/Branch.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3