reload uuid map after editing repo description and saving

Don't rely on the ConfigMonitor thread, it might be too slow.
This commit is contained in:
Joey Hess 2012-10-30 17:22:21 -04:00
parent 93ffd47d76
commit f6208bca0d

View file

@ -60,8 +60,9 @@ getRepoConfig uuid r mremote = RepoConfig
setRepoConfig :: UUID -> Maybe Remote -> RepoConfig -> RepoConfig -> Handler ()
setRepoConfig uuid mremote oldc newc = do
when (repoDescription oldc /= repoDescription newc) $ runAnnex undefined $
when (repoDescription oldc /= repoDescription newc) $ runAnnex undefined $ do
maybe noop (describeUUID uuid . T.unpack) (repoDescription newc)
void uuidMapLoad
when (repoGroup oldc /= repoGroup newc) $ runAnnex undefined $
case repoGroup newc of
RepoGroupStandard g -> setStandardGroup uuid g