We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c776a0 commit 44e59baCopy full SHA for 44e59ba
src/sync_template.sh
@@ -293,19 +293,19 @@ function push () {
293
local is_force=$2
294
local is_with_tags=$3
295
296
- local additional_params=" "
+ args=(--set-upstream origin "${branch}")
297
298
if [ "$is_force" == true ] ; then
299
warn "forcing the push."
300
- additional_params="${additional_params}--force "
+ args+=(--force)
301
fi
302
303
if [ "$is_with_tags" == true ] ; then
304
warn "include tags."
305
- additional_params="${additional_params}--tags "
+ args+=(--tags)
306
307
308
- git push "${additional_params}"--set-upstream origin "${branch}"
+ git push "${args[@]}"
309
}
310
311
####################################
0 commit comments