Fix: gitDescribe.ps1 crashed on a lightweight tag
This commit is contained in:
1 parent
5f2c341216
commit
ba4111203f
1 file changed
+1
-1
@@ -28,7 +28,7 @@ catch [System.Net.WebException]
|
||||
|
||||
# Get tag info
|
||||
try{
|
||||
$tagsInfo = ($result | % { "$($githubRepoApiUri)git/tags/$($_.object.sha)" ;} | % { Invoke-RestMethod -Method 'GET' -Uri $($_) -Headers $gitApiAuthHeader})
|
||||
$tagsInfo = ($result | % { "$($githubRepoApiUri)git/tags/$($_.object.sha)" ;} | % { try { Invoke-RestMethod -Method 'GET' -Uri $($_) -Headers $gitApiAuthHeader} catch {}})
|
||||
}
|
||||
catch [System.Net.WebException]
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user