server/migractions.py
branchstable
changeset 5034 4781870e97d9
parent 5019 72734c210836
child 5043 fe52dd3936cf
--- a/server/migractions.py	Fri Mar 26 09:18:21 2010 +0100
+++ b/server/migractions.py	Fri Mar 26 09:19:09 2010 +0100
@@ -69,7 +69,7 @@
         elif connect:
             self.repo_connect()
         # no config on shell to a remote instance
-        if config is not None:
+        if config is not None and (cnx or connect):
             self.session.data['rebuild-infered'] = False
             self.repo.hm.call_hooks('server_maintenance', repo=self.repo)
         if not schema: