Add repo_blob #121
No reviewers
Labels
No Label
in progress
kind/bug
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/security
kind/testing
kind/translation
kind/ui
lgtm/done
lgtm/need 1
lgtm/need 2
priority/critical
priority/low
priority/maybe
priority/medium
refactor
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
status/blocked
status/needs-feedback
status/wip
No Milestone
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/git#121
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "clee/add-repo-blob"
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?
Author: @clee
This adds a new
Repository.GetBlob(id)
method for use by gitea.Part of an attempt to fix go-gitea/gitea#4048.
Author: @lunny
@clee could you add some unit test?
Author: @clee
@lunny I added a test for
GetBlob
, but, uh... maybe I'm doing something wrong? Try running the test and see what you get. IsBlob.Data()
returning the right data?Author: @clee
I think I figured it out. I copied the
Blob
initializer fromblob_test.go
, and it's setting theptree
to the root of the repository. I need to figure out how to rebuild the parent tree from just having the SHA.Author: @ghost
Any update?
Author: @lafriks
Closing in favour of #132