diff options
author | Joey Hess <joey@kitenet.net> | 2013-06-18 15:38:17 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-06-18 15:38:17 -0400 |
commit | 7a03bdb2adf9ac6d6def3b503d2153fed47a330e (patch) | |
tree | 9f3b2a4fb01599e63a8bb29c94dface03214ad5c /Annex/Content | |
parent | b7d73288608b59b9588f1266b4d4cb6a83d7cded (diff) |
avoid failure creating inode sentinal file
Test suite on windows failed running git annex init in a bare clone of an
annexed repo. The annex directory didn't exist when it tried to write the
inode sentinal file.
Diffstat (limited to 'Annex/Content')
-rw-r--r-- | Annex/Content/Direct.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Annex/Content/Direct.hs b/Annex/Content/Direct.hs index e061f8e57..6da7fab52 100644 --- a/Annex/Content/Direct.hs +++ b/Annex/Content/Direct.hs @@ -233,6 +233,7 @@ readInodeSentinalFile = do writeInodeSentinalFile :: Annex () writeInodeSentinalFile = do sentinalfile <- fromRepo gitAnnexInodeSentinal + createAnnexDirectory (parentDir sentinalfile) sentinalcachefile <- fromRepo gitAnnexInodeSentinalCache liftIO $ writeFile sentinalfile "" liftIO $ maybe noop (writeFile sentinalcachefile . showInodeCache) |