Do not pull in HEAD less state

This commit is contained in:
Yohan Boniface 2013-12-07 12:42:06 +01:00
parent 9b1ca64083
commit 180c44340c

1
fabfile.py vendored
View file

@ -265,6 +265,7 @@ def collect_remote_statics():
exists = run_as_umap('if [ -d "{0}" ]; then echo 1; fi'.format(subdir)) exists = run_as_umap('if [ -d "{0}" ]; then echo 1; fi'.format(subdir))
if exists: if exists:
with cd(subdir): with cd(subdir):
run_as_umap('git checkout {0}'.format(branch))
run_as_umap('git pull origin {0} --tags'.format(branch)) run_as_umap('git pull origin {0} --tags'.format(branch))
else: else:
run_as_umap('git clone {0} {1}'.format(repository, subdir)) run_as_umap('git clone {0} {1}'.format(repository, subdir))