Avoid using git -C

The git version that ships with centos 7 does not support the -C flag.
This patch works around it's usage in the dlrn-build.yml playbook

Closes-Bug: #1960973
Change-Id: Iae6cdfa82fe68ff0de1da789378845950d70f03e
This commit is contained in:
Rafael Castillo 2022-02-15 17:15:37 -07:00
parent d261f1e4cf
commit e46b0b9e22
1 changed files with 5 additions and 3 deletions

View File

@ -132,9 +132,11 @@
git_branch: '{{ artg_change.branch }}'
shell: |
set -eu
git -C {{ git_path }} clean -ffd
git -C {{ git_path }} reset --hard HEAD
git -C {{ git_path }} checkout {{ git_branch }}
pushd {{ git_path }}
git clean -ffd
git reset --hard HEAD
git checkout {{ git_branch }}
popd
- name: Ensure distgit repo is absent, DLRN takes care of cloning based on config
file: