aosp-merger: remove merged_repos.txt early
* To be able to re-run the script cleanly Change-Id: I7eb65bc5d7265d0b4d892cb5c2921a8bec02103c
This commit is contained in:
@@ -77,6 +77,8 @@ help_message() {
|
|||||||
main() {
|
main() {
|
||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
export MERGEDREPOS="${TOP}/merged_repos.txt"
|
export MERGEDREPOS="${TOP}/merged_repos.txt"
|
||||||
|
# Remove any existing list of merged repos file
|
||||||
|
rm -f "${MERGEDREPOS}"
|
||||||
|
|
||||||
merge_aosp_forks
|
merge_aosp_forks
|
||||||
read -p "Waiting for conflict resolution before squashing. Press enter when done."
|
read -p "Waiting for conflict resolution before squashing. Press enter when done."
|
||||||
@@ -88,6 +90,8 @@ main() {
|
|||||||
unset MERGEDREPOS
|
unset MERGEDREPOS
|
||||||
elif [ "${1}" = "aosp" ]; then
|
elif [ "${1}" = "aosp" ]; then
|
||||||
export MERGEDREPOS="${TOP}/merged_repos_aosp.txt"
|
export MERGEDREPOS="${TOP}/merged_repos_aosp.txt"
|
||||||
|
# Remove any existing list of merged repos file
|
||||||
|
rm -f "${MERGEDREPOS}"
|
||||||
|
|
||||||
merge_aosp
|
merge_aosp
|
||||||
|
|
||||||
|
|||||||
@@ -56,9 +56,6 @@ for PROJECTPATH in ${PROJECTPATHS} .repo/manifests; do
|
|||||||
done
|
done
|
||||||
echo "#### Verification complete - no uncommitted changes found ####"
|
echo "#### Verification complete - no uncommitted changes found ####"
|
||||||
|
|
||||||
# Remove any existing list of merged repos file
|
|
||||||
rm -f "${MERGEDREPOS}"
|
|
||||||
|
|
||||||
# Ditch any existing staging branches (across all projects)
|
# Ditch any existing staging branches (across all projects)
|
||||||
repo abandon "${STAGINGBRANCH}"
|
repo abandon "${STAGINGBRANCH}"
|
||||||
|
|
||||||
|
|||||||
@@ -52,9 +52,6 @@ for PROJECTPATH in ${PROJECTPATHS} .repo/manifests; do
|
|||||||
done
|
done
|
||||||
echo "#### Verification complete - no uncommitted changes found ####"
|
echo "#### Verification complete - no uncommitted changes found ####"
|
||||||
|
|
||||||
# Remove any existing list of merged repos file
|
|
||||||
rm -f "${MERGEDREPOS}"
|
|
||||||
|
|
||||||
# Ditch any existing staging branches (across all projects)
|
# Ditch any existing staging branches (across all projects)
|
||||||
repo abandon "${STAGINGBRANCH}"
|
repo abandon "${STAGINGBRANCH}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user