From 4c697ea8516baa72b365f3f193a07a0c6a0d7121 Mon Sep 17 00:00:00 2001 From: stephane Date: Tue, 23 Feb 2016 14:22:25 -0800 Subject: [PATCH] Update ansible checkout from origin We currently want to install ansible 2.0.0.0-1 from a git checkout. However, if users have an old checkout in place, checking out ANSIBLE_GIT_BRANCH might not work. Update the list of branches and tags from the remote repository before checking out. Change-Id: Ie45f5338dc730528852de6c418ec98efb1fef16e --- scripts/env-setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/env-setup.sh b/scripts/env-setup.sh index d749a13c5..0976ab69e 100755 --- a/scripts/env-setup.sh +++ b/scripts/env-setup.sh @@ -112,6 +112,8 @@ if [ ! -d ansible ]; then cd ansible else cd ansible + git remote update origin --prune + git fetch --tags git checkout $ANSIBLE_GIT_BRANCH git pull --rebase origin $ANSIBLE_GIT_BRANCH git submodule update --init --recursive