Skip to content

Commit

Permalink
Merge pull request openhwgroup#2292 from silabs-robin/merge_cv32e40s_…
Browse files Browse the repository at this point in the history
…2023.11.16-13.09

Merge Script - Add Success-checks
  • Loading branch information
silabs-robin authored Nov 20, 2023
2 parents 85104f7 + 357957f commit 2a741d6
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 2a741d6

Please sign in to comment.