summaryrefslogtreecommitdiff
path: root/Init.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-04-27 12:21:38 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-04-27 12:21:38 -0400
commite0b7012ccc405dedb556b8c940eb66e42304bc73 (patch)
tree6a7093d721d4e1ad4933a1255e057c7df5189135 /Init.hs
parenta2ee4386bb8f64046a5838038c89492dddcce94f (diff)
uninit: Clear annex.uuid from .git/config. Closes: #670639
Diffstat (limited to 'Init.hs')
-rw-r--r--Init.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Init.hs b/Init.hs
index 9f1988a39..a0e16e881 100644
--- a/Init.hs
+++ b/Init.hs
@@ -29,7 +29,9 @@ initialize mdescription = do
maybe (recordUUID u) (describeUUID u) mdescription
uninitialize :: Annex ()
-uninitialize = gitPreCommitHookUnWrite
+uninitialize = do
+ gitPreCommitHookUnWrite
+ removeRepoUUID
{- Will automatically initialize if there is already a git-annex
branch from somewhere. Otherwise, require a manual init