Skip to content

Commit

Permalink
feat(core): deploy CLI - add support for git url "insteadOf": use 're…
Browse files Browse the repository at this point in the history
…mote get-url' to determine source repo url (#8397)
  • Loading branch information
friederbluemle authored and slorber committed Jan 26, 2023
1 parent d20d144 commit 1ff378d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus/src/commands/deploy.ts
Expand Up @@ -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
Expand Down

0 comments on commit 1ff378d

Please sign in to comment.