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

fix(deploy): revert "feat(deploy): copy local git config to tmp repo (#7702)" #7750

Merged
merged 1 commit into from Jul 12, 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
13 changes: 0 additions & 13 deletions packages/docusaurus/src/commands/deploy.ts
Expand Up @@ -183,9 +183,6 @@ You can also set the deploymentBranch property in docusaurus.config.js .`);
// Save the commit hash that triggers publish-gh-pages before checking
// out to deployment branch.
const currentCommit = shellExecLog('git rev-parse HEAD').stdout.trim();
const currentGitRootDir = shellExecLog(
'git rev-parse --show-toplevel',
).stdout.trim();

const runDeploy = async (outputDirectory: string) => {
const fromPath = outputDirectory;
Expand Down Expand Up @@ -216,16 +213,6 @@ You can also set the deploymentBranch property in docusaurus.config.js .`);
logger.error`Copying build assets from path=${fromPath} to path=${toPath} failed.`;
throw err;
}

const gitConfigFromPath = path.join(currentGitRootDir, `.git`, `config`);
const gitConfigToPath = path.join(toPath, `.git`, `config`);
try {
await fs.copy(gitConfigFromPath, gitConfigToPath);
} catch (err) {
logger.error`Copying git config from path=${gitConfigFromPath} to path=${gitConfigToPath} failed.`;
throw err;
}

shellExecLog('git add --all');

const commitMessage =
Expand Down