Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Nov 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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