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

invalid .lastmod from git for page with non-ascii characters in its name #6803

Closed
huguesdk opened this issue Jan 25, 2020 · 3 comments
Closed
Labels

Comments

@huguesdk
Copy link

huguesdk commented Jan 25, 2020

what version of hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.63.1 linux/amd64 BuildDate: 2020-01-24T01:20:28Z

does this issue reproduce with the latest release?

yes (0.63.1 is the latest version at the time of writing)

how to reproduce

  1. create a new hugo site with hugo new site lastmod_test
  2. edit config.toml and add enableGitInfo = true
  3. create a new page with hugo new eĥoŝanĝo_ĉiuĵaŭde.md
  4. create a new page with hugo new saluton.md
  5. init a new git repository at the base of the site with git init
  6. add and commit everything with git add . && git commit -m "initial commit"
  7. run hugo server -D
  8. open http://localhost:1313/sitemap.xml

note that the lastmod date for “eĥoŝanĝo_ĉiuĵaŭde” is the date defined in the front matter, not the date of the git commit, while for “saluton” it is the commit date.

@reuixiy
Copy link

reuixiy commented Jan 25, 2020

#3071

@huguesdk
Copy link
Author

thanks! i fixed it by adding:

git config core.quotePath false

before calling hugo in my build configuration.

@github-actions
Copy link

github-actions bot commented Feb 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants