FIX branch from config when clone

This commit is contained in:
Raimon Esteve 2016-05-26 10:23:58 +02:00
parent 60b01d6936
commit 6b6c38ad58
1 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ def clone(config=None, branch=None):
repo = Modules.get(module, 'repo')
url = Modules.get(module, 'url')
path = Modules.get(module, 'path')
branch = branch or Modules.get(module, 'branch')
mod_branch = branch or Modules.get(module, 'branch')
repo_path = os.path.join(path, module)
if os.path.exists(repo_path):
@ -223,7 +223,7 @@ def clone(config=None, branch=None):
print "Adding Module " + t.bold(module) + " to clone"
func = hg_clone
p = Process(target=func, args=(url, repo_path, branch))
p = Process(target=func, args=(url, repo_path, mod_branch))
p.start()
processes.append(p)