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:
Jimmy McCrory 2017-02-22 12:12:41 -08:00
parent 9d9580d091
commit 5b7f261735

View File

@ -224,7 +224,7 @@ function clone_release {
# 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.
pushd "/opt/leap42/openstack-ansible-$1"
if [[ -f "ignore-changes.marker" ]]; then
if [[ ! -f "ignore-changes.marker" ]]; then
git clean -qfdx
git fetch --all
git checkout "$1"