diff options
author | Rich Trott <rtrott@gmail.com> | 2022-01-13 18:08:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 18:08:44 +0300 |
commit | 4b1ee041538987223311be5d818a4e3441aa9eed (patch) | |
tree | 88211cf369ffbfe9b8e6e60c7e610fcadd1c0d1c /tools | |
parent | 25d0fbf12e7054cbfd600246b15ee3e8fa448f99 (diff) |
build: fix workflow access to git history
Refs: https://github.com/nodejs/node/pull/41466
PR-URL: https://github.com/nodejs/node/pull/41472
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/find-inactive-tsc.mjs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/find-inactive-tsc.mjs b/tools/find-inactive-tsc.mjs index acd2cee45b6..362e2ee2939 100755 --- a/tools/find-inactive-tsc.mjs +++ b/tools/find-inactive-tsc.mjs @@ -211,7 +211,8 @@ async function moveTscToEmeritus(peopleToMove) { // only been on the TSC for a week and therefore hasn't attended any meetings. const tscMembersAtEnd = await getTscFromReadme(); -await runGitCommand(`git checkout 'HEAD@{${SINCE}}' -- README.md`); +const startCommit = await runGitCommand(`git rev-list -1 --before '${SINCE}' HEAD`); +await runGitCommand(`git checkout ${startCommit} -- README.md`); const tscMembersAtStart = await getTscFromReadme(); await runGitCommand('git reset HEAD README.md'); await runGitCommand('git checkout -- README.md'); |