aboutsummaryrefslogtreecommitdiffstats
path: root/modules/lfs/server.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2017-12-08 13:21:37 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-12-08 20:21:37 +0800
commitef78309b6535e4feff7b48d4b119180504616e13 (patch)
tree0dd3c4946a69bff3f456000b04393b543ffe1333 /modules/lfs/server.go
parentaecfc56156a65e35eb972c58176a20d3bf9bbb7e (diff)
downloadgitea-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 'modules/lfs/server.go')
-rw-r--r--modules/lfs/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/lfs/server.go b/modules/lfs/server.go
index 474a3f56c3..329d6f00c4 100644
--- a/modules/lfs/server.go
+++ b/modules/lfs/server.go
@@ -68,12 +68,12 @@ type ObjectError struct {
// ObjectLink builds a URL linking to the object.
func (v *RequestVars) ObjectLink() string {
- return setting.AppURL + path.Join(v.User, v.Repo, "info/lfs/objects", v.Oid)
+ return setting.AppURL + path.Join(v.User, v.Repo+".git", "info/lfs/objects", v.Oid)
}
// VerifyLink builds a URL for verifying the object.
func (v *RequestVars) VerifyLink() string {
- return setting.AppURL + path.Join(v.User, v.Repo, "info/lfs/verify")
+ return setting.AppURL + path.Join(v.User, v.Repo+".git", "info/lfs/verify")
}
// link provides a structure used to build a hypermedia representation of an HTTP link.