fix NSIS when branches contain slashes

This commit is contained in:
Ted John committed 2016-05-04 22:07:48 +01:00
1 parent e29c2555c3
commit 3deb2ef363
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -18,17 +18,17 @@ param (
[switch]$Symbols = $false
)
if ($GitTag -eq "")
if (-not $GitTag)
{
if ($GitBranch -eq $null)
if (-not $GitBranch)
{
$GitBranch = (git rev-parse --abbrev-ref HEAD)
}
if ($GitCommitSha1 -eq $null)
if (-not $GitCommitSha1)
{
$GitCommitSha1 = (git rev-parse HEAD)
}
if ($GitCommitSha1Short -eq $null)
if (-not $GitCommitSha1Short)
{
$GitCommitSha1Short = (git rev-parse --short HEAD)
}