From 780ee5ff6d3fdcbbe69450d40260c1083315ca47 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 23 Jun 2011 15:38:52 -0400 Subject: fix bootstrapping, broken by move of .git/annex/index --- Branch.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Branch.hs b/Branch.hs index cb2feea6a..10a790631 100644 --- a/Branch.hs +++ b/Branch.hs @@ -80,9 +80,10 @@ withIndex' bootstrapping a = do let f = index g reset <- liftIO $ Git.useIndex f - unless bootstrapping $ do - e <- liftIO $ doesFileExist f - unless e $ liftIO $ genIndex g + e <- liftIO $ doesFileExist f + unless e $ liftIO $ do + createDirectoryIfMissing True $ takeDirectory f + unless bootstrapping $ genIndex g r <- a liftIO reset -- cgit v1.2.3