From b83aaa05ab6dad6adefcf2a32073e994d54e344c Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 13 Apr 2019 21:07:13 -0700
Subject: [PATCH] Support updates to existing tags, such as for WP-compat bumps

---
 scripts/deploy.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index 4ae118f..f185418 100644
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -43,12 +43,12 @@ SVN_URL="https://plugins.svn.wordpress.org/${PLUGIN_SLUG}/"
 SVN_DIR="$CI_BUILDS_DIR/svn-${PLUGIN_SLUG}"
 TMP_DIR="$CI_BUILDS_DIR/git-archive"
 
-# Checkout just trunk for efficiency
-# Tagging will be handled on the SVN level
-echo "➤ Checking out .org repository..."
+# Limit checkouts for efficiency
+echo "➤ Checking out dotorg repository..."
 svn checkout --depth immediates "$SVN_URL" "$SVN_DIR"
 cd "$SVN_DIR"
 svn update --set-depth infinity trunk
+svn update --set-depth infinity "tags/${PLUGIN_VERSION}"
 
 # Ensure we are in the $CI_PROJECT_DIR directory, just in case
 echo "➤ Copying files..."
-- 
GitLab