diff --git a/devtools/tools/release.mts b/devtools/tools/release.mts index bdd8ab350f3..0884ca118aa 100644 --- a/devtools/tools/release.mts +++ b/devtools/tools/release.mts @@ -298,7 +298,7 @@ async function prepareReleasePullRequest(newVersion: string): Promise { await exec(`git push origin ${releaseBranch} --force-with-lease`); console.log(chalk.green('Release branch pushed to your fork.')); - const {stdout: remoteUrl} = await exec('git config --get remote.origin.url'); + const {stdout: remoteUrl} = await exec('git remote get-url origin'); const match = remoteUrl.trim().match(/github\.com[/:]([\w-]+)\/angular/); const origin = match ? match[1] : 'angular';