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(v2): read last update from inner git repositories #5048

Merged
merged 1 commit into from Jun 24, 2021
Merged

fix(v2): read last update from inner git repositories #5048

merged 1 commit into from Jun 24, 2021

Conversation

felipecrs
Copy link
Contributor

@felipecrs felipecrs commented Jun 23, 2021

Motivation

My use case:

website/ # a repo
|   external/
|   |  repo-a/ # another repo, ignored by git at website/
|   |  repo-b/ # another repo, also ignored by git

With the current implementation, the lastUpdate won't return any data, as the files are unknown by Git when using website as the cwd. But if we call git in their own folders, git will be able to properly read the metadata.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

I verified by replacing the content of lastUpdate.js in my node_modules folder, which worked. But if needed, I can find a way to record a video. I just didn't record yet because in my tests there are private data from my company.

The good news is that this change won't break any existing use case, it will just fix mine.

Related PRs

None

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 23, 2021
@netlify
Copy link

netlify bot commented Jun 23, 2021

✔️ [V2]
Built without sensitive environment variables

🔨 Explore the source changes: 08f8e98

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/60d37c8fba8573000804c2d2

😎 Browse the preview: https://deploy-preview-5048--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Jun 23, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 55
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5048--docusaurus-2.netlify.app/

@slorber
Copy link
Collaborator

slorber commented Jun 24, 2021

Thanks, that looks fine 👍 as long as it does not break current lastUpdate for simpler setups

@slorber slorber merged commit f478262 into facebook:master Jun 24, 2021
@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Jun 24, 2021
@felipecrs felipecrs deleted the fix-last-update branch June 24, 2021 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants