diff --git a/scripts/generate-changelog.js b/scripts/generate-changelog.js index 01dc8374a..f20543011 100755 --- a/scripts/generate-changelog.js +++ b/scripts/generate-changelog.js @@ -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; diff --git a/scripts/prepare-release.sh b/scripts/prepare-release.sh index fef4f8956..0c3cc253b 100755 --- a/scripts/prepare-release.sh +++ b/scripts/prepare-release.sh @@ -98,7 +98,7 @@ echo "Bumping version number for android related files..." "$SONAR_DIR"/scripts/bump.sh "$VERSION" # Generate changelog -./generate-changelog.js +"$SONAR_DIR"/scripts/generate-changelog.js # Create commit echo "Committing the files..."