[server] unbreak db-restore
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 25 Nov 2015 11:30:36 +0100
changeset 10928 0aa9da35db30
parent 10927 41341b5a1f49
child 10929 73e6ec94504b
[server] unbreak db-restore
server/migractions.py
--- a/server/migractions.py	Tue Nov 24 19:00:02 2015 +0100
+++ b/server/migractions.py	Wed Nov 25 11:30:36 2015 +0100
@@ -266,7 +266,7 @@
                 if written_format in ('portable', 'native'):
                     format = written_format
         self.config.init_cnxset_pool = False
-        repo = self.repo
+        repo = self.repo = self.config.repository()
         source = repo.system_source
         try:
             source.restore(osp.join(tmpdir, source.uri), self.confirm, drop, format)