Parcourir la source

update git ftech for tag update

Robert il y a 7 mois
Parent
commit
a7fa809c90
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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未處理
-git fetch
+git fetch --tags -f
 $status = git status --porcelain -b
 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"
 
 #檢查remote是否有新commit未處理
-git fetch
+git fetch --tags -f
 $status = git status --porcelain -b
 if (($status -match "ahead") -or ($status -match "behind") -or ($status -match "gone") )
 {