From 1ff378da24b3ae266ae5131ffb4867c3ca1ed2c0 Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Wed, 30 Nov 2022 03:33:35 -0800 Subject: [PATCH] feat(core): deploy CLI - add support for git url "insteadOf": use 'remote get-url' to determine source repo url (#8397) --- packages/docusaurus/src/commands/deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus/src/commands/deploy.ts b/packages/docusaurus/src/commands/deploy.ts index 90d6f9cc5ee7..38c422b4090b 100644 --- a/packages/docusaurus/src/commands/deploy.ts +++ b/packages/docusaurus/src/commands/deploy.ts @@ -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