diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-06-26 19:28:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-26 13:28:55 +0200 |
commit | e3c626834b34fae7728ee7869ed73ee4d1b26a26 (patch) | |
tree | ec61ea5376286a78622b95b7d849e8a299c85a28 /integrations/lfs_getobject_test.go | |
parent | e673e42f7efafb184ffbe84f6998087713d8e373 (diff) | |
download | gitea-e3c626834b34fae7728ee7869ed73ee4d1b26a26.tar.gz gitea-e3c626834b34fae7728ee7869ed73ee4d1b26a26.zip |
Let package git depend on setting but not opposite (#15241)
* Let package git depend on setting but not opposite
* private some package variables
Diffstat (limited to 'integrations/lfs_getobject_test.go')
-rw-r--r-- | integrations/lfs_getobject_test.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/integrations/lfs_getobject_test.go b/integrations/lfs_getobject_test.go index 337a93567a..c99500f469 100644 --- a/integrations/lfs_getobject_test.go +++ b/integrations/lfs_getobject_test.go @@ -13,6 +13,7 @@ import ( "testing" "code.gitea.io/gitea/models" + "code.gitea.io/gitea/modules/git" "code.gitea.io/gitea/modules/lfs" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/routers/web" @@ -81,7 +82,7 @@ func checkResponseTestContentEncoding(t *testing.T, content *[]byte, resp *httpt func TestGetLFSSmall(t *testing.T) { defer prepareTestEnv(t)() - setting.CheckLFSVersion() + git.CheckLFSVersion() if !setting.LFS.StartServer { t.Skip() return @@ -94,7 +95,7 @@ func TestGetLFSSmall(t *testing.T) { func TestGetLFSLarge(t *testing.T) { defer prepareTestEnv(t)() - setting.CheckLFSVersion() + git.CheckLFSVersion() if !setting.LFS.StartServer { t.Skip() return @@ -110,7 +111,7 @@ func TestGetLFSLarge(t *testing.T) { func TestGetLFSGzip(t *testing.T) { defer prepareTestEnv(t)() - setting.CheckLFSVersion() + git.CheckLFSVersion() if !setting.LFS.StartServer { t.Skip() return @@ -131,7 +132,7 @@ func TestGetLFSGzip(t *testing.T) { func TestGetLFSZip(t *testing.T) { defer prepareTestEnv(t)() - setting.CheckLFSVersion() + git.CheckLFSVersion() if !setting.LFS.StartServer { t.Skip() return @@ -154,7 +155,7 @@ func TestGetLFSZip(t *testing.T) { func TestGetLFSRangeNo(t *testing.T) { defer prepareTestEnv(t)() - setting.CheckLFSVersion() + git.CheckLFSVersion() if !setting.LFS.StartServer { t.Skip() return @@ -167,7 +168,7 @@ func TestGetLFSRangeNo(t *testing.T) { func TestGetLFSRange(t *testing.T) { defer prepareTestEnv(t)() - setting.CheckLFSVersion() + git.CheckLFSVersion() if !setting.LFS.StartServer { t.Skip() return |