| 96 | }; |
| 97 | |
| 98 | const getDateStringForCommit = async commit => { |
| 99 | let dateString = await execRead( |
| 100 | `git show -s --no-show-signature --format=%cd --date=format:%Y%m%d ${commit}` |
| 101 | ); |
| 102 | |
| 103 | // On CI environment, this string is wrapped with quotes '...'s |
| 104 | if (dateString.startsWith("'")) { |
| 105 | dateString = dateString.slice(1, 9); |
| 106 | } |
| 107 | |
| 108 | return dateString; |
| 109 | }; |
| 110 | |
| 111 | const getCommitFromCurrentBuild = async () => { |
| 112 | const cwd = join(__dirname, '..', '..'); |
no test coverage detected