1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-07 23:00:01 +02:00

Refactor merge-to-branch script to use default branch if no branch is specified

This commit is contained in:
mr. M 2024-10-11 18:54:51 +02:00
parent 93774f17c8
commit cf450d6d4a
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -1,11 +1,8 @@
set -ex
branch="$1"
default_branch="central"
if [ -z "$branch" ]; then
branch="$default_branch"
fi
git checkout "$branch"
git merge "$default_branch"
git push origin "$branch"