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
FileStats method String() triggers "strings: negative Repeat count" #177
Comments
Also having this issue @pawelWritesCode, were you ever able to figure out the root cause? |
For anyone having the same issue, this happens when the file path that you made changes contains more than 65 characters, heightOfHistogram becomes negative. And then you are dividing a positive number with a negative number and it panics. go-git/plumbing/object/patch.go Line 275 in bf3471d
|
To help us keep things tidy and focus on the active tasks, we've introduced a stale bot to spot issues/PRs that haven't had any activity in a while. This particular issue hasn't had any updates or activity in the past 90 days, so it's been labeled as 'stale'. If it remains inactive for the next 30 days, it'll be automatically closed. We understand everyone's busy, but if this issue is still important to you, please feel free to add a comment or make an update to keep it active. Thanks for your understanding and cooperation! |
plumbing: no panic in printStats function. Fixes #177
Hello, I'm trying to obtain list of files that were touched(changed, added,removed,modified..) between two commits.
Here is my code
Line
fileStats.String()
triggers panic:strings: negative Repeat count
.Is it my approach to problem or bug with library ?
My git:
git version 2.20.1 (Apple Git-117)
Go:
go version go1.15.1 darwin/amd64
Also I'm adding output from git client so it may help someone debug problem
The text was updated successfully, but these errors were encountered: