aosp-merger: Abandon staging branch inside _merge_helper
Change-Id: Iea165da1de035cd4228ac28ce351ee3616c4e050
This commit is contained in:
committed by
Chirayu Desai
parent
3b8c42073d
commit
d9c87a53d5
@@ -61,6 +61,8 @@ BRANCH="${lineageos_branch}"
|
||||
STAGINGBRANCH="staging/${BRANCHSUFFIX}"
|
||||
|
||||
cd "${TOP}/${PROJECTPATH}"
|
||||
# Ditch any existing staging branches
|
||||
repo abandon "${STAGINGBRANCH}" .
|
||||
repo start "${STAGINGBRANCH}" .
|
||||
if [ -f ".gitupstream" ]; then
|
||||
git fetch -q --force --tags "$(cat .gitupstream)" "${NEWTAG}"
|
||||
|
||||
@@ -76,9 +76,6 @@ for PROJECTPATH in ${PROJECTPATHS} .repo/manifests; do
|
||||
done
|
||||
echo "#### Verification complete - no uncommitted changes found ####"
|
||||
|
||||
# Ditch any existing staging branches (across all projects)
|
||||
repo abandon "${STAGINGBRANCH}"
|
||||
|
||||
# Iterate over each forked project
|
||||
for PROJECTPATH in ${PROJECTPATHS}; do
|
||||
"${script_path}"/_merge_helper.sh --project-path "${PROJECTPATH}" --operation "${OPERATION}" --old-tag "${OLDTAG}" --new-tag "${NEWTAG}" --branch-suffix "${BRANCHSUFFIX}"
|
||||
|
||||
@@ -72,9 +72,6 @@ for PROJECTPATH in ${PROJECTPATHS} .repo/manifests; do
|
||||
done
|
||||
echo "#### Verification complete - no uncommitted changes found ####"
|
||||
|
||||
# Ditch any existing staging branches (across all projects)
|
||||
repo abandon "${STAGINGBRANCH}"
|
||||
|
||||
# Iterate over each forked project
|
||||
for PROJECTPATH in ${PROJECTPATHS}; do
|
||||
"${script_path}"/_merge_helper.sh --project-path "${PROJECTPATH}" --operation "${OPERATION}" --old-tag "${OLDTAG}" --new-tag "${NEWTAG}" --branch-suffix "${BRANCHSUFFIX}"
|
||||
|
||||
Reference in New Issue
Block a user