mirror of
https://github.com/NaN-tic/trytontasks-modules.git
synced 2023-12-13 21:00:21 +01:00
Update config repo with branch parameter
This commit is contained in:
parent
334d3f285a
commit
b1d5e1eb26
|
@ -57,13 +57,12 @@ def info(config=None):
|
|||
|
||||
@task
|
||||
def config(repo=None, branch='default', update=False):
|
||||
'Clone/Update main config repo (modules)'
|
||||
'Clone/Update config repo'
|
||||
config = "./config"
|
||||
if update:
|
||||
repo = hgapi.Repo(config)
|
||||
repo.hg_pull()
|
||||
node = repo.hg_node()
|
||||
repo.hg_update(node)
|
||||
repo.hg_update(branch)
|
||||
print t.green("Updated ") + t.bold('./config')
|
||||
else:
|
||||
if not repo:
|
||||
|
|
Loading…
Reference in a new issue