Fix checkout of cloned leap upgrade repos
Perform a git branch checkout on cloned OSA repo directories when the ignore-changes.marker file does not exist. Change-Id: Ib062198f54e399d644e13c7aea7582e0ad6e1976
This commit is contained in:
parent
9d9580d091
commit
5b7f261735
@ -224,7 +224,7 @@ function clone_release {
|
|||||||
# Enter the clone directory and checkout the given branch, If the given checkout has an
|
# Enter the clone directory and checkout the given branch, If the given checkout has an
|
||||||
# "ignore-changes.marker" file present the checkout will be skipped.
|
# "ignore-changes.marker" file present the checkout will be skipped.
|
||||||
pushd "/opt/leap42/openstack-ansible-$1"
|
pushd "/opt/leap42/openstack-ansible-$1"
|
||||||
if [[ -f "ignore-changes.marker" ]]; then
|
if [[ ! -f "ignore-changes.marker" ]]; then
|
||||||
git clean -qfdx
|
git clean -qfdx
|
||||||
git fetch --all
|
git fetch --all
|
||||||
git checkout "$1"
|
git checkout "$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user