feat(core): deploy CLI - add support for git url "insteadOf": use 'remote get-url' to determine source repo url (#8397)

This commit is contained in:
Frieder Bluemle 2022-11-30 03:33:35 -08:00 committed by sebastienlorber
parent d20d144154
commit 1ff378da24

View file

@ -66,7 +66,7 @@ This behavior can have SEO impacts and create relative link issues.
// Source repo is the repo from where the command is invoked
const sourceRepoUrl = shell
.exec('git config --get remote.origin.url', {silent: true})
.exec('git remote get-url origin', {silent: true})
.stdout.trim();
// The source branch; defaults to the currently checked out branch