diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-10-05 16:23:09 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-10-05 16:23:09 -0400 |
commit | aa38d92afcc0efbe7bb9786d00c45f71af756b75 (patch) | |
tree | 8d41e4a52905d1a6141e2761aeaa5b93ffd36d71 /Command | |
parent | 1497590d45d8f7bebc8b308e7196e493c0489f60 (diff) |
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
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Upgrade.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Upgrade.hs b/Command/Upgrade.hs index 223be581d..696b794a5 100644 --- a/Command/Upgrade.hs +++ b/Command/Upgrade.hs @@ -26,5 +26,5 @@ start = do showStart "upgrade" "." whenM (isNothing <$> getVersion) $ do initialize Nothing Nothing - r <- upgrade False + r <- upgrade False latestVersion next $ next $ return r |