uninit: Unset annex.version. Closes: #689852

This commit is contained in:
Joey Hess 2012-10-07 16:04:03 -04:00
parent 0e0003f004
commit 34e7faf71a
3 changed files with 5 additions and 0 deletions

View file

@ -33,6 +33,9 @@ getVersion = handle <$> getConfig versionField ""
setVersion :: Annex ()
setVersion = setConfig versionField defaultVersion
removeVersion :: Annex ()
removeVersion = unsetConfig versionField
checkVersion :: Version -> Annex ()
checkVersion v
| v `elem` supportedVersions = noop