diff options
author | 6543 <6543@obermui.de> | 2021-03-22 18:03:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 18:03:18 +0100 |
commit | 5f038cd7febd834c9b86b9e734848870efbdce86 (patch) | |
tree | 8b3e9b8fd52c537766d3fd05c56d0ff90a7aa6da /vendor/code.gitea.io/sdk/gitea/git_blob.go | |
parent | 8567cba0d978e6ab68c337c0a80244704a15718a (diff) | |
download | gitea-5f038cd7febd834c9b86b9e734848870efbdce86.tar.gz gitea-5f038cd7febd834c9b86b9e734848870efbdce86.zip |
[Vendor] update gitea-sdk v0.14.0 (#15103)
* upgraded code.gitea.io/sdk/gitea v0.13.2 => v0.14.0
* rm workaround
Diffstat (limited to 'vendor/code.gitea.io/sdk/gitea/git_blob.go')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/git_blob.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/git_blob.go b/vendor/code.gitea.io/sdk/gitea/git_blob.go index 262fd92dfd..7668672dc0 100644 --- a/vendor/code.gitea.io/sdk/gitea/git_blob.go +++ b/vendor/code.gitea.io/sdk/gitea/git_blob.go @@ -19,6 +19,9 @@ type GitBlobResponse struct { // GetBlob get the blob of a repository file func (c *Client) GetBlob(user, repo, sha string) (*GitBlobResponse, *Response, error) { + if err := escapeValidatePathSegments(&user, &repo, &sha); err != nil { + return nil, nil, err + } blob := new(GitBlobResponse) resp, err := c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/git/blobs/%s", user, repo, sha), nil, nil, blob) return blob, resp, err |