Make sure prepare-release scripts works when running from another dir
Summary: Yesterday's script failed if prepare-release was invoked from another dir Reviewed By: jknoxville Differential Revision: D20362093 fbshipit-source-id: a0ce877a2f145f320cf346dc86e3d2568279b8b9
This commit is contained in:
committed by
Facebook Github Bot
parent
85cc0d9d88
commit
9dc187cc25
@@ -39,7 +39,7 @@ console.log(
|
||||
|
||||
// # get all commit summaries since last release | find all changelog entries, but make sure there is only one line per commit by temporarily replacing newlines
|
||||
const hgLogCommand = `hg log -r "${firstCommit}::${lastCommit} and file('../*')" --template "{phabdiff} - {sub('\n','${newlineMarker}', desc)}\n"`;
|
||||
const hgLog = cp.execSync(hgLogCommand).toString();
|
||||
const hgLog = cp.execSync(hgLogCommand, {cwd: __dirname}).toString();
|
||||
|
||||
const diffRe = /^D\d+/;
|
||||
const changeLogLineRe = /(^changelog:\s*?)(.*?)$/i;
|
||||
|
||||
Reference in New Issue
Block a user