From 132a1a474f1268f855ecaadf962896a31fe2c46e Mon Sep 17 00:00:00 2001 From: chufan Date: Sat, 5 Oct 2024 12:38:52 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20`sync`=E8=84=9A=E6=9C=AC=E6=94=AF?= =?UTF-8?q?=E6=8C=81`-f`=E5=8F=82=E6=95=B0=EF=BC=8C=E5=BC=BA=E5=88=B6?= =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/sync | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/sync b/scripts/sync index c5c9009..c1321a1 100755 --- a/scripts/sync +++ b/scripts/sync @@ -22,15 +22,15 @@ if [ "$current_branch" = "master" ]; then for repoName in "${remoteList[@]}" do echo "-->Pushing to $repoName in master branch..." - git push "$repoName" master + git push "$repoName" master "$@" done # next分支同步 elif [ "$current_branch" = "next" ]; then for repoName in "${remoteList[@]}" do echo "-->Pushing to $repoName in next branch..." - git push "$repoName" next + git push "$repoName" next "$@" done else echo "当前分支是:$current_branch ,只允许在master和next分支上操作,并推送到远程!!!" -fi \ No newline at end of file +fi