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
Fail graciously with enableGitInfo = true
in a non-git project
#6035
Comments
The Or would this create a problem with the way people are using the Git Info Variables? |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
For the record: I currently use a workaround for this issue. I've removed the
This way if someone downloads the repo without using git and uses Hugo to run, the fatal error does not appear. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
Might fix, based on gohugoio/hugo#6035
I don't think this should be closed. This issue is causing my build to fail on the Vercel platform. With
Setting |
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. |
Hugo (v0.55.6/extended windows/amd64) exits with a fatal error if
enableGitInfo
is set totrue
in a folder that does not contain git info.I don't think it's necessary to quit and raise a fatal error in that case. I'm using the new GitHub template function and others are using my Hugo repo as a template. Then if someone just downloads the repo without using git (there are such people), they face this error. I think a warning would be more than enough.
The text was updated successfully, but these errors were encountered: