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

View file

@ -48,6 +48,7 @@ uninitialize :: Annex ()
uninitialize = do
gitPreCommitHookUnWrite
removeRepoUUID
removeVersion
{- Will automatically initialize if there is already a git-annex
branch from somewhere. Otherwise, require a manual init

1
debian/changelog vendored
View file

@ -10,6 +10,7 @@ git-annex (3.20121002) UNRELEASED; urgency=low
of the repository configuration settings stored in the git-annex branch.
* Only build-depend on libghc-clientsession-dev on arches that will have
the webapp.
* uninit: Unset annex.version. Closes: #689852
-- Joey Hess <joeyh@debian.org> Mon, 01 Oct 2012 15:09:49 -0400