Skip to content

Commit 4819e52

Browse files
committed
build: Get branch name for installer more reliably
1 parent 0f29b78 commit 4819e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Installers/InstallerProject/make_installer.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if ($is_git_installed -eq $true) {
4242
# get git branch name
4343
$branch_name = ""
4444
if ($is_git_repo -eq $true) {
45-
try { $branch_name = git rev-parse --abbrev-ref HEAD }
45+
try { $branch_name = git symbolic-ref --short HEAD }
4646
catch {
4747
Write-Warning "Can not get branch name. Branch name will not be used for installer."
4848
}

0 commit comments

Comments
 (0)