Commit 4d13c3a4 authored by Tristan Gingold's avatar Tristan Gingold

commands: minor refactoring to improve coverage

parent 68a6462a
......@@ -80,10 +80,9 @@ class ActionCore(Action):
result = self.svn_backend.fetch(module)
elif module.source == 'git':
result = self.git_backend.fetch(module)
elif module.source == 'gitsm':
result = self.gitsm_backend.fetch(module)
assert False, "unknown source"
assert module.source == 'gitsm'
result = self.gitsm_backend.fetch(module)
if result is False:
raise Exception("Unable to fetch module %s", str(module.url))
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