github / github/git-sizer

git-sizer can fail on some very long lines

未关闭
#157 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
4.1k
派生
201
PR 合并指标
30 天内没有已合并 PR

描述

On some repositories, we can get the following error:

```
% git-sizer --verbose
error: error scanning repository: copy-oids: bufio.Scanner: token too long
```

It appears that one of the lines from `git rev-list --objects` is too long to be read. In the (private) repository instance we saw, the line was 12583034 bytes in size. It is speculated that this is due to a very long filename or path.

git-sizer should handle this more gracefully, if only by printing the affected object ID. Perhaps an option could also be added to adjust the buffer size so that normally git-sizer would use fewer resources but it could be adjusted to deal with larger lines if need be.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。