1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-11 20:18:20 +00:00

Add raw blob endpoint to get objects by SHA ID (#5334)

* Add raw blob endpoint

This should make it possible to download raw blobs directly from
/:repo/:username/raw/blob/:sha1 URLs.

* fix: Make it work

* As an SHA-ID is no path getRefNameFromPath can't be used to verify
file specifying parameter
* added relevant change in go-gitea/git #132

Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>

* Update Gopkg.lock

Can't update all vendors due to errors

Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>

* style: Add Gitea copyright header

* feat: Added integration test for /repo/u/r/raw/blob

* fix: correct year in copyright header
This commit is contained in:
Peter Hoffmann
2018-11-18 19:45:40 +01:00
committed by techknowlogick
parent 4651ba06c1
commit e08c7e521b
6 changed files with 85 additions and 2 deletions

4
Gopkg.lock generated
View File

@@ -3,11 +3,11 @@
[[projects]]
branch = "master"
digest = "1:835585f8450b4ec12252d032b0f13e6571ecf846e49076f69067f2503a7c1e07"
digest = "1:296fd9dfbae66f6feeb09c7163ec39c262de425289154430a55d0a248c520486"
name = "code.gitea.io/git"
packages = ["."]
pruneopts = "NUT"
revision = "6ef79e80b3b06ca13a1f3a7b940903ebc73b44cb"
revision = "d945eda535aa7d6b3c1f486279df2a3f7d05f78b"
[[projects]]
branch = "master"