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

Error Failed to read Git log with "inexact rename detection was skipped ..." #6313

Closed
schoetbi opened this issue Sep 6, 2019 · 0 comments

Comments

@schoetbi
Copy link

commented Sep 6, 2019

When running with --enableGitInfo I get the following error:

Building sites … ERROR 2019/09/06 07:19:04 Failed to read Git log: parsing time "2010-01-21 17:03:44 +0000warning: inexact rename detection was skipped due to too many files.": extra text: warning: inexact rename detection was skipped due to too many files.

The reason is gits inexact renaming detection.

Solution:
git config diff.renames 0

See Git documentation for diff.renames

To unset the above setting use
git config --unset diff.renames

So the the call to git.exe should include -c diff.renames=0 in github.com\bep\gitmap\gitmap.go

Hugo Version: Hugo Static Site Generator v0.58.0-64D8BF1E windows/amd64 BuildDate: 2019-09-04T15:43:46Z

schoetbi pushed a commit to schoetbi/gitmap that referenced this issue Sep 6, 2019
schoetbi
Fix for error "inexact rename detection was skipped due to too many f…
…iles"

Failed to read Git log: parsing time "2010-01-21 17:03:44 +0000warning: inexact rename detection was skipped due to too many files.

See: gohugoio/hugo#6313

@bep bep added this to the v0.59 milestone Sep 6, 2019

@bep bep added Upstream Bug labels Sep 6, 2019

@bep bep self-assigned this Sep 6, 2019

schoetbi pushed a commit to schoetbi/gitmap that referenced this issue Sep 6, 2019
schoetbi
Fix for error "inexact rename detection was skipped due to too many f…
…iles"

Failed to read Git log: parsing time "2010-01-21 17:03:44 +0000warning: inexact rename detection was skipped due to too many files.

See: gohugoio/hugo#6313
bep added a commit to bep/gitmap that referenced this issue Sep 6, 2019
Fix for error "inexact rename detection was skipped due to too many f…
…iles"

Failed to read Git log: parsing time "2010-01-21 17:03:44 +0000warning: inexact rename detection was skipped due to too many files.

See: gohugoio/hugo#6313

@bep bep modified the milestones: v0.59, v0.58.1 Sep 6, 2019

@bep bep closed this in 24ad429 Sep 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.