Fix: gitDescribe.ps1 crashed on a lightweight tag

This commit is contained in:
lukeIam committed 2015-12-07 19:51:15 +01:00
1 parent 5f2c341216
commit ba4111203f
1 file changed
+1 -1
+1 -1
View File
@@ -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]
{