Skip to content

Commit f23beb0

Browse files
committed
🐛 (lfs) fixes filesize of the LFS file
shows the main LFS filesize instead of the pointer filesize when viewing a file
1 parent 990201d commit f23beb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func getFileReader(ctx gocontext.Context, repoID int64, blob *git.Blob) (buf []b
114114
}
115115
buf = buf[:n]
116116
fi.st = typesniffer.DetectContentType(buf)
117-
fi.fileSize = blob.Size()
117+
fi.fileSize = meta.Pointer.Size
118118
fi.lfsMeta = &meta.Pointer
119119
return buf, dataRc, fi, nil
120120
}

0 commit comments

Comments
 (0)