From fc4fa86f301980f8e4ccd77a5ddf7d81e7560d17 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 2 Jun 2016 15:34:30 -0400 Subject: Automatically enable v6 mode when initializing in a clone from a repo that has an adjusted branch checked out. The clone also has the adjusted branch checked out, so it needs to be initialized to a version that supports that. --- Annex/Init.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Annex/Init.hs') diff --git a/Annex/Init.hs b/Annex/Init.hs index 2b0d0f89d..f0023bfb3 100644 --- a/Annex/Init.hs +++ b/Annex/Init.hs @@ -105,7 +105,8 @@ initialize' mversion = do , unlessM isBare switchHEADBack ) - checkAdjustedClone + whenM checkAdjustedClone $ + void $ upgrade True createInodeSentinalFile False uninitialize :: Annex () -- cgit v1.2.3