From fb815ee1ceabda55a29e18772850956c4dbae5e3 Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Tue, 29 Nov 2022 18:44:31 -0800 Subject: [PATCH] Use 'remote get-url' to determine source repo url --- 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