mirror of
https://github.com/espressif/openthread.git
synced 2025-08-06 14:52:18 +08:00
[script] allow specify old commit for check-size (#11147)
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user