Commit ee6a88165567d74c422c5d4b0ee90718a58a002e

Authored by Carlos Henrique Ferreira Oliveira
1 parent f7a07387

Changed fabfile git clone command

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
fabfile.py
... ... @@ -158,8 +158,7 @@ def update_code():
158 158 return
159 159  
160 160 if not exists(REPO_PATH):
161   - run('git clone {} {}'.format(REPO_URL, REPO_PATH))
162   - run('git checkout {}'.format(REPO_BRANCH))
  161 + run('git clone {} {} -b {}'.format(REPO_URL, REPO_PATH, REPO_BRANCH))
163 162 else:
164 163 with cd(REPO_PATH):
165 164 run('git checkout {}'.format(REPO_BRANCH))
... ...