diff options
author | Giteabot <teabot@gitea.io> | 2025-03-27 13:36:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-27 05:36:07 +0000 |
commit | 690e810bccc544a134c9012b0dd9d7db73f4759e (patch) | |
tree | fd211ab931377b4ee2692ff2028e245adbfc10a2 | |
parent | 35983ac0a82413be1594d786a37532d3819320fe (diff) | |
download | gitea-690e810bccc544a134c9012b0dd9d7db73f4759e.tar.gz gitea-690e810bccc544a134c9012b0dd9d7db73f4759e.zip |
Try to fix check-attr bug (#34029) (#34033)
Backport #34029 by wxiaoguang
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
-rw-r--r-- | modules/git/repo_attribute.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_attribute.go b/modules/git/repo_attribute.go index 99073a8477..e7c6c1a47f 100644 --- a/modules/git/repo_attribute.go +++ b/modules/git/repo_attribute.go @@ -280,7 +280,7 @@ func (wr *nulSeparatedAttributeWriter) Write(p []byte) (n int, err error) { } } wr.tmp = append(wr.tmp, p...) - return len(p), nil + return l, nil } func (wr *nulSeparatedAttributeWriter) ReadAttribute() <-chan attributeTriple { |