From 35f36c3f97030ba743e56c1ec9b9dcacb782f6dc Mon Sep 17 00:00:00 2001 From: hanxuanyu <2252193204@qq.com> Date: Tue, 27 Jan 2026 15:56:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=84=9A=E6=9C=AC=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20PowerShell=20=E5=92=8C=E6=89=B9=E5=A4=84?= =?UTF-8?q?=E7=90=86=E8=84=9A=E6=9C=AC=E4=B8=AD=E7=9A=84=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/tag.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tag.ps1 b/scripts/tag.ps1 index 775d0be..8d91b6d 100644 --- a/scripts/tag.ps1 +++ b/scripts/tag.ps1 @@ -30,8 +30,8 @@ git pull origin master if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } # 检查本地和远端是否一致 -$Local = git rev-parse @ -$Remote = git rev-parse @{u} +$Local = git rev-parse "@" +$Remote = git rev-parse "@{u}" if ($Local -ne $Remote) { Write-Host "Error: Local branch is not in sync with remote. Please push your changes first." -ForegroundColor Red