Commit f2d6363c authored by William Kamp's avatar William Kamp

Fix when the path is empty - set to '.' (current)

parent b7733ae7
......@@ -66,6 +66,7 @@ class Git(Fetcher):
def fetch(self, module):
"""Get the code from the remote Git repository"""
fetchto = module.fetchto()
logging.debug("Fetchto = '{}'".format(fetchto))
if not os.path.exists(fetchto):
os.mkdir(fetchto)
basename = path_utils.url_basename(module.url)
......
......@@ -36,7 +36,7 @@ class ModuleConfig(object):
def fetchto(self):
"""Get the fetchto folder for the module"""
return os.path.dirname(self.path)
return os.path.dirname(os.path.join(".", self.path))
def init_config(self, module_args):
"""This initializes the module configuration.
......
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