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.
This commit is contained in:
Joey Hess 2016-06-02 15:34:30 -04:00
parent 02a20288ef
commit 72f0d3d384
Failed to extract signature
3 changed files with 13 additions and 5 deletions

View file

@ -105,7 +105,8 @@ initialize' mversion = do
, unlessM isBare
switchHEADBack
)
checkAdjustedClone
whenM checkAdjustedClone $
void $ upgrade True
createInodeSentinalFile False
uninitialize :: Annex ()