diff --git a/fabfile.py b/fabfile.py index f1de622..0f4803f 100644 --- a/fabfile.py +++ b/fabfile.py @@ -24,7 +24,8 @@ DISTRO_CMD = { } APP_USER = APP_NAME = VENV_NAME = 'colab' -REPO_URL = 'git@github.com:colab-community/colab.git' +REPO_URL = 'https://github.com/colab-community/colab.git' +REPO_BRANCH = 'master' environments = { @@ -71,6 +72,7 @@ def cmd(family, command, args=''): def environment(name=DEFAULT_ENVIRONMENT): """Set the environment where the tasks will be executed""" global REPO_URL + global REPO_BRANCH try: import project_cfg @@ -78,6 +80,7 @@ def environment(name=DEFAULT_ENVIRONMENT): pass else: REPO_URL = project_cfg.repository_url + REPO_BRANCH = project_cfg.branch environments.update(project_cfg.environments) if name not in environments: @@ -156,8 +159,10 @@ def update_code(): if not exists(REPO_PATH): run('git clone {} {}'.format(REPO_URL, REPO_PATH)) + run('git checkout {}'.format(REPO_BRANCH)) else: with cd(REPO_PATH): + run('git checkout {}'.format(REPO_BRANCH)) run('git pull') -- libgit2 0.21.2