Commit 39a45fd5 authored by Boxiang Sun's avatar Boxiang Sun

Update submodule when running testnode

parent be6d062e
...@@ -164,8 +164,11 @@ class Updater(object): ...@@ -164,8 +164,11 @@ class Updater(object):
logger.exception("") logger.exception("")
if not(correct_url): if not(correct_url):
self.deleteRepository() self.deleteRepository()
parameter_list = ['submodule', 'update', '--init']
self._git(*parameter_list)
if not os.path.exists(self.repository_path): if not os.path.exists(self.repository_path):
parameter_list = ['clone', '--recurse-submodules', self.url] parameter_list = ['clone', self.url]
if self.branch is not None: if self.branch is not None:
parameter_list.extend(['-b', self.branch]) parameter_list.extend(['-b', self.branch])
parameter_list.append(self.repository_path) parameter_list.append(self.repository_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment