Add GetFileReader() & GetFile() support git-lfs #595
Labels
No Label
has/backport
has/pull
in progress
invalid
kind/breaking
kind/bug
kind/build
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/refactor
kind/security
kind/testing
kind/translation
kind/ui
need/backport
priority/critical
priority/low
priority/maybe
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/go-sdk#595
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "getFile_supportLFS_and_add_GetFileReader"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add GetFileReader that acts like GetFile but dont read into a buffer but return a ReadCloser instead & add lfs support
CI failure is related.
likely due to reuse and a missing check ...
... will fix it
done
@ -39,10 +39,12 @@ func TestGetGlobalSettings(t *testing.T) {
attachSettings, _, err := c.GetGlobalAttachmentSettings()
assert.NoError(t, err)
if assert.True(t, len(attachSettings.AllowedTypes) > 100) {
Why is this needed?
since default values have changed we get this: https://drone.gitea.com/gitea/go-sdk/575/1/3
this check does only check if there are enough vars but not fail if a single bit will change again
Changed to
assert.NotEmpty