From 02ad917c419b6371b5b4e527caf38dafeeb4fd51 Mon Sep 17 00:00:00 2001 From: Bill Robinson Date: Tue, 18 Jul 2017 15:25:42 -0700 Subject: [PATCH] scripts/build.sh: perform an explicit `git fetch` to pull in tags when building a custom $BUILD_VERSION Signed-off-by: Bill Robinson --- scripts/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build.sh b/scripts/build.sh index d3d535e2..58456699 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -31,6 +31,7 @@ if [ ! -z "${BUILD_VERSION-}" ]; then git checkout master # make sure we have the latest master + all tags git pull --ff-only # no merge commits, please + git fetch --tags # shallow clones do not include tags, so doublecheck git checkout $BUILD_VERSION # BUILD_VERSION is expected to be a valid tag else echo "No BUILD_VERSION set, skipping checkout/update of contiv-ui repo"