Skip to content

Commit

Permalink
[script] allow specify old commit for check-size (openthread#11147)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukepo authored Jan 10, 2025
1 parent 0e16655 commit 7bd3abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/check-size
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ readonly OT_TMP_DIR
OT_SHA_NEW=${GITHUB_SHA:-$(git rev-parse HEAD)}
readonly OT_SHA_NEW

OT_SHA_OLD="$(git cat-file -p "${OT_SHA_NEW}" | grep 'parent ' | head -n1 | cut -d' ' -f2)"
OT_SHA_OLD="${OT_SHA_OLD:-$(git cat-file -p "${OT_SHA_NEW}" | grep 'parent ' | head -n1 | cut -d' ' -f2)}"
readonly OT_SHA_OLD

OT_REPORT_FILE_TABLE="${OT_TMP_DIR}/report_table"
Expand Down

0 comments on commit 7bd3abd

Please sign in to comment.