summaryrefslogtreecommitdiff
path: root/Init.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-12-29 13:06:23 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-12-29 13:06:23 -0400
commita696b98024d8b9009cd6ad021f20e087607145f6 (patch)
tree8e548dda8421a1d698ebba4ed90429011ab47642 /Init.hs
parent9e53aca36b2b709034dc3ff57827a964e4a8a3d8 (diff)
Auto-upgrade v3 indirect repos to v5 with no changes. This also fixes a problem when a direct mode repo was somehow set to v3 rather than v4, and so the automatic direct mode upgrade to v5 was not done.
Diffstat (limited to 'Init.hs')
-rw-r--r--Init.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Init.hs b/Init.hs
index 759eae763..56bccfa0c 100644
--- a/Init.hs
+++ b/Init.hs
@@ -65,13 +65,12 @@ initialize mdescription = do
checkCrippledFileSystem
unlessM isBare $
hookWrite preCommitHook
+ setVersion supportedVersion
ifM (crippledFileSystem <&&> not <$> isBare)
( do
enableDirectMode
setDirect True
- setVersion directModeVersion
, do
- setVersion defaultVersion
-- Handle case where this repo was cloned from a
-- direct mode repo.
unlessM isBare