瀏覽代碼

update git ftech for tag update

Robert 7 月之前
父節點
當前提交
a7fa809c90
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Prerelease_Build.ps1
  2. 1 1
      Release_Build.ps1

+ 1 - 1
Prerelease_Build.ps1

@@ -30,7 +30,7 @@ if (-not $status) {
 }
 }
 
 
 #檢查remote是否有新commit未處理
 #檢查remote是否有新commit未處理
-git fetch
+git fetch --tags -f
 $status = git status --porcelain -b
 $status = git status --porcelain -b
 if (($status -match "ahead") -or ($status -match "behind") -or ($status -match "gone") )
 if (($status -match "ahead") -or ($status -match "behind") -or ($status -match "gone") )
 {
 {

+ 1 - 1
Release_Build.ps1

@@ -25,7 +25,7 @@ $source_tag="Docker_RC"
 $targetTagPrefix="Docker_v"
 $targetTagPrefix="Docker_v"
 
 
 #檢查remote是否有新commit未處理
 #檢查remote是否有新commit未處理
-git fetch
+git fetch --tags -f
 $status = git status --porcelain -b
 $status = git status --porcelain -b
 if (($status -match "ahead") -or ($status -match "behind") -or ($status -match "gone") )
 if (($status -match "ahead") -or ($status -match "behind") -or ($status -match "gone") )
 {
 {