From 921b60e5223cb02340f4f7208c62df9a90d25113 Mon Sep 17 00:00:00 2001 From: Anirudha Bose Date: Tue, 24 Jun 2014 11:11:12 +0530 Subject: [PATCH] Checkout the proper Git tag when --*-tag={tag} is passed --- tools/packaging/indep.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/packaging/indep.sh b/tools/packaging/indep.sh index adcee731..27d9270c 100755 --- a/tools/packaging/indep.sh +++ b/tools/packaging/indep.sh @@ -156,6 +156,8 @@ function fetch_cling { checkout_branch=$(git describe --match v* --abbrev=0 --tags | head -n 1) elif [ ${1} = "master" ]; then checkout_branch="master" + else + checkout_branch="${1}" fi git checkout ${checkout_branch} @@ -169,6 +171,8 @@ function fetch_cling { checkout_branch=$(git describe --match v* --abbrev=0 --tags | head -n 1) elif [ ${1} = "master" ]; then checkout_branch="master" + else + checkout_branch="${1}" fi git checkout ${checkout_branch}