Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WP.org Plugin Deploy
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
WP.org Plugin Deploy
Merge requests
!9
Fix tag updates
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix tag updates
fix/3-svn-cp
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Erick Hitter
requested to merge
fix/3-svn-cp
into
master
6 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Fixes
#3 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
95758c77
1 commit,
6 years ago
1 file
+
9
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
scripts/deploy.sh
+
9
−
8
Options
@@ -92,13 +92,6 @@ cd "$SVN_DIR"
# The --delete flag will delete anything in destination that no longer exists in source
rsync
-r
"
$TMP_DIR
/"
trunk/
--delete
# If tag already exists, update from trunk.
# Generally, this applies when bumping WP version compatibility.
if
[[
-d
"
$SVN_TAG_DIR
"
]]
;
then
echo
"➤ Updating existing tag..."
rsync
-r
trunk/
"
$SVN_TAG_DIR
"
--delete
fi
# Copy dotorg assets to /assets
rsync
-r
"
${
CI_PROJECT_DIR
}
/
${
WP_ORG_ASSETS_DIR
}
/"
assets/
--delete
@@ -112,7 +105,15 @@ svn add . --force > /dev/null
# Also suppress stdout here
svn status |
grep
'^\!'
|
sed
's/! *//'
| xargs
-I
% svn
rm
%
>
/dev/null
# Copy new tag locally to make this a single commit
# If tag already exists, remove and update from trunk.
# Generally, this applies when bumping WP version compatibility.
# svn doesn't have a proper rename function, prompting the remove/copy dance.
if
[[
-d
"
$SVN_TAG_DIR
"
]]
;
then
echo
"➤ Removing existing tag before update..."
svn
rm
"
$SVN_TAG_DIR
"
fi
# Copy new/updated tag to maintain svn history.
if
[[
!
-d
"
$SVN_TAG_DIR
"
]]
;
then
echo
"➤ Copying tag..."
svn
cp
"trunk"
"
$SVN_TAG_DIR
"
Loading