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:
parent
d261f1e4cf
commit
e46b0b9e22
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue