Skip to content

Commit

Permalink
build: fix workflow access to git history
Browse files Browse the repository at this point in the history
Refs: #41466
  • Loading branch information
Trott committed Jan 11, 2022
1 parent c4194c0 commit 086216f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/find-inactive-tsc.mjs
Expand Up @@ -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');
Expand Down

0 comments on commit 086216f

Please sign in to comment.