[DevTools] Fix Issue in release script where commits for the last DevTools release are undefined #22233
Luna Ruan committed
Sep 1, 2021 at 12:56 UTC
2b7214033e6ba15f2616012f39ae1f1ee0e573a3
1 file changed
+5
-1
scripts/devtools/prepare-release.js
+5
-1
@@ -115,8 +115,12 @@ async function getPreviousCommitSha() {
115
const choices = [];
116
117
const lines = await execRead(`
118
- git log --max-count=5 --topo-order --pretty=format:'%H:::%s:::%as' HEAD -- ${PACKAGE_PATHS[0]}
118
+ git log --max-count=5 --topo-order --pretty=format:'%H:::%s:::%as' HEAD -- ${join(
119
+ ROOT_PATH,
120
+ PACKAGE_PATHS[0]
121
+ )}
122
`);
123
+
124
lines.split('\n').forEach((line, index) => {
125
const [hash, message, date] = line.split(':::');
126
choices.push({