Skip to content

Commit

Permalink
Try fix branch name detection
Browse files Browse the repository at this point in the history
  • Loading branch information
NogginBops committed Apr 10, 2023
1 parent e86d8d7 commit 12952eb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions make_nuget.ps1
Expand Up @@ -7,11 +7,7 @@ $ErrorActionPreference = "Stop"
[String]$GLFW_SHORT_VERSION = $GLFW_VERSION.Substring(0, $GLFW_VERSION.LastIndexOf("."))

$buildVersionResult = $verBuild.ToString()
$currentBranch=(git log -n 1 --pretty=%D HEAD)
$splt = [regex]::split($currentBranch, "(\s*,\s+)|(\s+->\s+)")
$currentBranch=$splt[2]
$splt = $currentBranch -split "/"
$currentBranch = $splt[$splt.Length - 1]
$currentBranch=(git branch --show-current)
Write-Output "Current Branch: $currentBranch"

if($currentBranch -eq "develop") {
Expand Down

0 comments on commit 12952eb

Please sign in to comment.