mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 09:57:03 +02:00
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:
parent
d20d144154
commit
1ff378da24
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue