diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2017-12-08 13:21:37 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-12-08 20:21:37 +0800 |
commit | ef78309b6535e4feff7b48d4b119180504616e13 (patch) | |
tree | 0dd3c4946a69bff3f456000b04393b543ffe1333 /routers | |
parent | aecfc56156a65e35eb972c58176a20d3bf9bbb7e (diff) | |
download | gitea-ef78309b6535e4feff7b48d4b119180504616e13.tar.gz gitea-ef78309b6535e4feff7b48d4b119180504616e13.zip |
Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. (#3092)
* Add failing test
* Fix urls
* Improve url in tests
* improve testing
* Remove debug code
* Add deps
* LFS corner-case : Search on lower but store with case
* Temporary comment of blocking action
* fix hooks
* Use temporary repo for git client test
* Use userPassword in place of hard-coded password
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/view.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go index a02acb0d6c..512af27fc4 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -179,7 +179,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st ctx.Data["IsLFSFile"] = true ctx.Data["FileSize"] = size filenameBase64 := base64.RawURLEncoding.EncodeToString([]byte(blob.Name())) - ctx.Data["RawFileLink"] = fmt.Sprintf("%s%s/info/lfs/objects/%s/%s", setting.AppURL, ctx.Repo.Repository.FullName(), oid, filenameBase64) + ctx.Data["RawFileLink"] = fmt.Sprintf("%s%s.git/info/lfs/objects/%s/%s", setting.AppURL, ctx.Repo.Repository.FullName(), oid, filenameBase64) } } } |