When auto-upgrading a v3 remote, avoid upgrading to version 6, instead keep it at version 5.
Fixes a bug introduced with v6 mode that I didn't notice until now. Probably not many v3 repos left out there, and upgrading them to v6 mode is not disastrous, only a little premature. This commit was sponsored by Riku Voipio
This commit is contained in:
parent
f23446b60e
commit
f867fc157f
6 changed files with 14 additions and 11 deletions
|
@ -93,7 +93,8 @@ initialize' mversion = do
|
|||
Database.Keys.scanAssociatedFiles
|
||||
v <- checkAdjustedClone
|
||||
case v of
|
||||
NeedUpgradeForAdjustedClone -> void $ upgrade True
|
||||
NeedUpgradeForAdjustedClone ->
|
||||
void $ upgrade True versionForAdjustedClone
|
||||
InAdjustedClone -> return ()
|
||||
NotInAdjustedClone ->
|
||||
ifM (crippledFileSystem <&&> (not <$> isBareRepo))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue