diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-06-02 15:34:30 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-06-02 15:34:30 -0400 |
commit | fc4fa86f301980f8e4ccd77a5ddf7d81e7560d17 (patch) | |
tree | ecd56ccc689c57213de04f105c079f20941f8255 /Annex/Init.hs | |
parent | 07f0f11f3cd8c8b52b2fe1324d5319613b5e2e79 (diff) |
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.
Diffstat (limited to 'Annex/Init.hs')
-rw-r--r-- | Annex/Init.hs | 3 |
1 files changed, 2 insertions, 1 deletions
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 () |