Skip to content

Commit

Permalink
fix build for snapshots (digital-asset#18455)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyverhaegen-da authored Feb 12, 2024
1 parent efcdf6a commit e95821c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bazel build //... `
bazel shutdown

function Has-Run-All-Tests-Trailer {
if ($env:BUILD_REASON -eq "PullRequest") {
if (2 -eq ((git show -s --format=%p HEAD | Measure-Object -Word).Words)) {
$ref = "HEAD^2"
} else {
$ref = "HEAD"
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ARTIFACT_DIRS="${BUILD_ARTIFACTSTAGINGDIRECTORY:-$PWD}"
mkdir -p "${ARTIFACT_DIRS}/logs"

has_run_all_tests_trailer() {
if [ "${BUILD_REASON:-}" = "PullRequest" ]; then
if (( 2 == $(git show -s --format=%p HEAD | wc -w) )); then
ref="HEAD^2"
else
ref="HEAD"
Expand Down

0 comments on commit e95821c

Please sign in to comment.