From 690e810bccc544a134c9012b0dd9d7db73f4759e Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 27 Mar 2025 13:36:07 +0800 Subject: [PATCH] Try to fix check-attr bug (#34029) (#34033) Backport #34029 by wxiaoguang Co-authored-by: wxiaoguang --- modules/git/repo_attribute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {