blob: db63a9774fa710dd73e7d6d436b3917a325d1ea9 [file] [log] [blame]
- name: Prepare git submodules
shell: |
PREVIOUS_BRANCH=$(git rev-parse --abbrev-ref HEAD)
echo "{{ item.key }}: ${PREVIOUS_BRANCH}"
git checkout -b zuul_origin_${PREVIOUS_BRANCH} origin/${PREVIOUS_BRANCH}
args:
chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
loop: "{{ query('dict', zuul.projects) }}"