uninit: Unset annex.version. Closes: #689852
This commit is contained in:
parent
0e0003f004
commit
34e7faf71a
3 changed files with 5 additions and 0 deletions
|
@ -33,6 +33,9 @@ getVersion = handle <$> getConfig versionField ""
|
||||||
setVersion :: Annex ()
|
setVersion :: Annex ()
|
||||||
setVersion = setConfig versionField defaultVersion
|
setVersion = setConfig versionField defaultVersion
|
||||||
|
|
||||||
|
removeVersion :: Annex ()
|
||||||
|
removeVersion = unsetConfig versionField
|
||||||
|
|
||||||
checkVersion :: Version -> Annex ()
|
checkVersion :: Version -> Annex ()
|
||||||
checkVersion v
|
checkVersion v
|
||||||
| v `elem` supportedVersions = noop
|
| v `elem` supportedVersions = noop
|
||||||
|
|
1
Init.hs
1
Init.hs
|
@ -48,6 +48,7 @@ uninitialize :: Annex ()
|
||||||
uninitialize = do
|
uninitialize = do
|
||||||
gitPreCommitHookUnWrite
|
gitPreCommitHookUnWrite
|
||||||
removeRepoUUID
|
removeRepoUUID
|
||||||
|
removeVersion
|
||||||
|
|
||||||
{- Will automatically initialize if there is already a git-annex
|
{- Will automatically initialize if there is already a git-annex
|
||||||
branch from somewhere. Otherwise, require a manual init
|
branch from somewhere. Otherwise, require a manual init
|
||||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -10,6 +10,7 @@ git-annex (3.20121002) UNRELEASED; urgency=low
|
||||||
of the repository configuration settings stored in the git-annex branch.
|
of the repository configuration settings stored in the git-annex branch.
|
||||||
* Only build-depend on libghc-clientsession-dev on arches that will have
|
* Only build-depend on libghc-clientsession-dev on arches that will have
|
||||||
the webapp.
|
the webapp.
|
||||||
|
* uninit: Unset annex.version. Closes: #689852
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Mon, 01 Oct 2012 15:09:49 -0400
|
-- Joey Hess <joeyh@debian.org> Mon, 01 Oct 2012 15:09:49 -0400
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue