Skip to content

Commit

Permalink
Update stress-test-deployment-lib.ps1
Browse files Browse the repository at this point in the history
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
  • Loading branch information
2 people authored and azure-sdk committed Jan 18, 2024
1 parent 72e7a0e commit 91e3de3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,7 @@ function DeployStressPackage(
"--set", "stress-test-addons.env=$environment"
)

Push-Location $pkg.Directory
$gitCommit = git rev-parse HEAD 2>&1
Pop-Location
$gitCommit = git --git-dir $pkg.Directory rev-parse HEAD 2>&1
if (!$LASTEXITCODE) {
$helmCommandArg += "--set", "GitCommit=$gitCommit"
}
Expand Down

0 comments on commit 91e3de3

Please sign in to comment.