Skip to content

Commit

Permalink
add success-checks to 'merge' script
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Pedersen <[email protected]>
  • Loading branch information
silabs-robin committed Nov 16, 2023
1 parent 593e9a1 commit 357957f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions bin/merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ usage() {
}


die() {

scriptname=$0
message=$1
echo "$scriptname: error: $message"
exit 1

}


merge_cv32e40s_into_cv32e40x-dv () {

echo $'\n======= Merge of cv32e40s into cv32e40x-dv: =======\n'
Expand Down Expand Up @@ -158,8 +168,8 @@ rejection_diff() {
branch_name_merge_normal=$(git branch | grep 'merge')
branch_name_merge_theirs=$(echo $branch_name_merge_normal | sed 's/merge/theirs/')

git checkout main
git checkout -B $branch_name_merge_theirs
git checkout main || die "can't checkout main"
git checkout -B $branch_name_merge_theirs || die "can't create branch"
git merge -X theirs $branch_name_40s_subtree

move_files_40s_into_40x
Expand Down

0 comments on commit 357957f

Please sign in to comment.