blob: db63a9774fa710dd73e7d6d436b3917a325d1ea9 [file] [log] [blame]
Jan Kundrát3a016432020-04-07 22:47:49 +02001- name: Prepare git submodules
2 shell: |
Jan Kundrát473cdf52020-04-14 13:34:33 +02003 PREVIOUS_BRANCH=$(git rev-parse --abbrev-ref HEAD)
4 echo "{{ item.key }}: ${PREVIOUS_BRANCH}"
5 git checkout -b zuul_origin_${PREVIOUS_BRANCH} origin/${PREVIOUS_BRANCH}
Jan Kundrát3a016432020-04-07 22:47:49 +02006 args:
7 chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
Jan Kundráta6e14742020-04-08 10:34:06 +02008 loop: "{{ query('dict', zuul.projects) }}"