[DevTools] Fix Issue in release script where commits for the last DevTools release are undefined #22233
This commit is contained in:
parent
ac8fc34e61
commit
2b7214033e
|
@ -115,8 +115,12 @@ async function getPreviousCommitSha() {
|
|||
const choices = [];
|
||||
|
||||
const lines = await execRead(`
|
||||
git log --max-count=5 --topo-order --pretty=format:'%H:::%s:::%as' HEAD -- ${PACKAGE_PATHS[0]}
|
||||
git log --max-count=5 --topo-order --pretty=format:'%H:::%s:::%as' HEAD -- ${join(
|
||||
ROOT_PATH,
|
||||
PACKAGE_PATHS[0]
|
||||
)}
|
||||
`);
|
||||
|
||||
lines.split('\n').forEach((line, index) => {
|
||||
const [hash, message, date] = line.split(':::');
|
||||
choices.push({
|
||||
|
|
Loading…
Reference in New Issue