From a0e81a44a113d102dd37556a460797940941e0fb Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Tue, 5 Feb 2013 21:11:50 +0000 Subject: [PATCH] Proper checkout of tag by version. Previous one was for branches.. refs #3736 --- misc/package/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/package/build.sh b/misc/package/build.sh index 9099c232964..5978d4b191e 100755 --- a/misc/package/build.sh +++ b/misc/package/build.sh @@ -111,8 +111,11 @@ SUBSCRIBE_NEWSLETTER echo "checkout repository for tag $VERSION" rm -rf $DEST_PATH/piwik_last_version - git clone -b $VERSION -q -- $URL_REPO $DEST_PATH/piwik_last_version || die "Problem checking out the last version tag" + git clone -q -- $URL_REPO $DEST_PATH/piwik_last_version || die "Problem checking out the last version tag" + cd $DEST_PATH/piwik_last_version + git checkout tags/$VERSION -q + cd $DEST_PATH echo "preparing release $VERSION" mv piwik_last_version piwik