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

Shu/4200 #442

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Shu/4200 #442

merged 1 commit into from
Apr 7, 2022

Conversation

Brooooooklyn
Copy link
Contributor

@Brooooooklyn Brooooooklyn commented Apr 7, 2022

@vercel
Copy link

vercel bot commented Apr 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Updated Deployment Preview
nextra 🔄 In Progress Apr 7, 2022 at 1:37PM (UTC) View on Vercel Canceled
nextra-theme-docs-dev ✅ Deployed Apr 7, 2022 at 1:37PM (UTC) View on Vercel View Preview

Comment on lines +144 to +158
if (repository.isShallow()) {
if (process.env.VERCEL) {
console.warn(
`The repository is shallow cloned, so the latest modified time will not be presented. Set the VERCEL_DEEP_CLONE=true environment variable to enable deep cloning.`
)
} else if (process.env.GITHUB_ACTION) {
console.warn(
`The repository is shallow cloned, so the latest modified time will not be presented. See https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches to fetch all the history.`
)
} else {
console.warn(
`The repository is shallow cloned, so the latest modified time will not be presented.`
)
}
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@shuding shuding merged commit 1b0d6c8 into shuding:core Apr 7, 2022
@Brooooooklyn Brooooooklyn deleted the shu/4200 branch April 7, 2022 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants