mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Update git scripts to use git-list-tor-branches.sh
This commit is contained in:
committed by
David Goulet
parent
42660ea056
commit
d9152b8a66
@@ -90,41 +90,15 @@ GITHUB_PUSH=${TOR_GITHUB_PUSH:-"No_Pushing_To_GitHub"}
|
||||
# The branches and worktrees need to be modified when there is a new branch,
|
||||
# and when an old branch is no longer supported.
|
||||
|
||||
# Configuration of the branches that needs merging. The values are in order:
|
||||
# (0) current maint/release branch name
|
||||
# (1) Full path of the git worktree
|
||||
#
|
||||
# First set of arrays are the maint-* branch and then the release-* branch.
|
||||
# New arrays need to be in the WORKTREE= array else they aren't considered.
|
||||
MAINT_035=( "maint-0.3.5" "$GIT_PATH/$TOR_WKT_NAME/maint-0.3.5" )
|
||||
MAINT_041=( "maint-0.4.1" "$GIT_PATH/$TOR_WKT_NAME/maint-0.4.1" )
|
||||
MAINT_042=( "maint-0.4.2" "$GIT_PATH/$TOR_WKT_NAME/maint-0.4.2" )
|
||||
MAINT_043=( "maint-0.4.3" "$GIT_PATH/$TOR_WKT_NAME/maint-0.4.3" )
|
||||
MAINT_MASTER=( "master" "$GIT_PATH/$TOR_MASTER_NAME" )
|
||||
|
||||
RELEASE_035=( "release-0.3.5" "$GIT_PATH/$TOR_WKT_NAME/release-0.3.5" )
|
||||
RELEASE_041=( "release-0.4.1" "$GIT_PATH/$TOR_WKT_NAME/release-0.4.1" )
|
||||
RELEASE_042=( "release-0.4.2" "$GIT_PATH/$TOR_WKT_NAME/release-0.4.2" )
|
||||
RELEASE_043=( "release-0.4.3" "$GIT_PATH/$TOR_WKT_NAME/release-0.4.3" )
|
||||
set -e
|
||||
eval "$(git-list-tor-branches.sh -b)"
|
||||
set +e
|
||||
|
||||
# The master branch path has to be the main repository thus contains the
|
||||
# origin that will be used to fetch the updates. All the worktrees are created
|
||||
# from that repository.
|
||||
ORIGIN_PATH="$GIT_PATH/$TOR_MASTER_NAME"
|
||||
|
||||
# SC2034 -- shellcheck thinks that these are unused. We know better.
|
||||
ACTUALLY_THESE_ARE_USED=<<EOF
|
||||
${MAINT_035[0]}
|
||||
${MAINT_041[0]}
|
||||
${MAINT_042[0]}
|
||||
${MAINT_043[0]}
|
||||
${MAINT_MASTER[0]}
|
||||
${RELEASE_035[0]}
|
||||
${RELEASE_041[0]}
|
||||
${RELEASE_042[0]}
|
||||
${RELEASE_043[0]}
|
||||
EOF
|
||||
|
||||
#######################
|
||||
# Argument processing #
|
||||
#######################
|
||||
@@ -161,22 +135,6 @@ done
|
||||
# Git worktrees to manage #
|
||||
###########################
|
||||
|
||||
WORKTREE=(
|
||||
MAINT_035[@]
|
||||
RELEASE_035[@]
|
||||
|
||||
MAINT_041[@]
|
||||
RELEASE_041[@]
|
||||
|
||||
MAINT_042[@]
|
||||
RELEASE_042[@]
|
||||
|
||||
MAINT_043[@]
|
||||
RELEASE_043[@]
|
||||
|
||||
MAINT_MASTER[@]
|
||||
)
|
||||
|
||||
COUNT=${#WORKTREE[@]}
|
||||
|
||||
#############
|
||||
|
||||
Reference in New Issue
Block a user