mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 03:52:09 +08:00
Only verify that the target branch doesn't exist
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
|
||||
- name: Create new epel branch for the new release
|
||||
ansible.builtin.shell: |
|
||||
if [ "$( git -C '{{ checkout_path }}/{{ item }}.git' rev-parse --verify epel{{ release }} 2> /dev/null)" != "$( git -C '{{ checkout_path }}/{{ item }}.git' rev-parse --verify {{ branch_from }} 2> /dev/null)" ]
|
||||
if [ "$( git -C '{{ checkout_path }}/{{ item }}.git' rev-parse --verify epel{{ release }} 2> /dev/null)" == "" ]
|
||||
then
|
||||
git -C '{{ checkout_path }}/{{ item }}.git' branch epel{{ release }} {{ branch_from }}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user