webapp: After upgrading a git repository to git-annex, fix bug that made it temporarily not be synced with.

This commit is contained in:
Joey Hess 2014-01-26 13:57:05 -04:00
parent 5fc2d760ea
commit 78d0fd389e
2 changed files with 4 additions and 1 deletions

View file

@ -264,6 +264,7 @@ getUpgradeRepositoryR r = go =<< liftAnnex (repoIdRemote r)
liftAnnex $ setConfig
(remoteConfig (Remote.repo rmt) "ignore")
(Git.Config.boolConfig False)
liftAssistant $ syncRemote rmt
liftAnnex $ void Remote.remoteListRefresh
liftAssistant updateSyncRemotes
liftAssistant $ syncRemote rmt
redirect DashboardR