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 lastUpdated to work w/ Git submodules #2149

Merged
merged 3 commits into from
Mar 29, 2023
Merged

Conversation

chgeo
Copy link
Contributor

@chgeo chgeo commented Mar 27, 2023

The previous approach was broken as git log does not deliver data if called with a path that leads inside a submodule.

The fix is to set the file's dirname as cwd and call git w/ just the file name. This works in all circumstances.

Fixes #2148

The previous approach was broken as `git log` does not deliver data if
called with a path that leads inside a submodule.

The fix is to set the file's dirname as `cwd` and call git w/ just the
file name.  This works in all circumstances.
@chgeo chgeo changed the title Fix lastUpdated to work w/ Git submodules Fix lastUpdated to work w/ Git submodules Mar 27, 2023
@brc-dd brc-dd merged commit 4c23003 into vuejs:main Mar 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lastUpdated timestamp does not work for Git submodules
2 participants