Skip to content

Commit 80da54f

Browse files
Update test_harness.jl
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2e39f09 commit 80da54f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_harness.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ if haskey(ENV, "GITHUB_SHA") && get(ENV, "GITHUB_EVENT_NAME", "") == "pull_reque
2828
# First check if HEAD^2 exists (i.e., this is actually a merge commit)
2929
if success(`git rev-parse --verify --quiet HEAD^2`)
3030
# Compare tree hashes to check if content actually differs
31-
merge_tree = chomp(read(`git rev-parse HEAD:`, String))
32-
pr_tree = chomp(read(`git rev-parse HEAD^2:`, String))
31+
merge_tree = chomp(read(`git rev-parse HEAD^{tree}`, String))
32+
pr_tree = chomp(read(`git rev-parse HEAD^2^{tree}`, String))
3333
has_diff = merge_tree != pr_tree
3434
else
3535
# Not a merge commit, so no difference to report

0 commit comments

Comments
 (0)