mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 05:59:58 +02:00
Refactor merge-to-branch script to use default branch if no branch is specified
This commit is contained in:
parent
93774f17c8
commit
cf450d6d4a
1 changed files with 1 additions and 4 deletions
|
@ -1,11 +1,8 @@
|
||||||
|
set -ex
|
||||||
|
|
||||||
branch="$1"
|
branch="$1"
|
||||||
default_branch="central"
|
default_branch="central"
|
||||||
|
|
||||||
if [ -z "$branch" ]; then
|
|
||||||
branch="$default_branch"
|
|
||||||
fi
|
|
||||||
|
|
||||||
git checkout "$branch"
|
git checkout "$branch"
|
||||||
git merge "$default_branch"
|
git merge "$default_branch"
|
||||||
git push origin "$branch"
|
git push origin "$branch"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue