From ba4111203f4bb3f0223d2aa018f25d5e8c12db6c Mon Sep 17 00:00:00 2001 From: lukeIam <2lukeiam@gmail.com> Date: Mon, 7 Dec 2015 19:51:15 +0100 Subject: [PATCH] Fix: gitDescribe.ps1 crashed on a lightweight tag --- .appveyor/gitDescribe.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.appveyor/gitDescribe.ps1 b/.appveyor/gitDescribe.ps1 index 01e40629..98fe26ca 100644 --- a/.appveyor/gitDescribe.ps1 +++ b/.appveyor/gitDescribe.ps1 @@ -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] {