From 110fc57cbcf293c19ed7017d8ea528b4bbbd7396 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 12 Jun 2022 23:51:54 +0800 Subject: Move some code into models/git (#19879) * Move access and repo permission to models/perm/access * fix test * Move some git related files into sub package models/git * Fix build * fix git test * move lfs to sub package * move more git related functions to models/git * Move functions sequence * Some improvements per @KN4CK3R and @delvh --- modules/lfs/content_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/lfs') diff --git a/modules/lfs/content_store.go b/modules/lfs/content_store.go index 9fa2c7e3b2..c794a1fecc 100644 --- a/modules/lfs/content_store.go +++ b/modules/lfs/content_store.go @@ -113,7 +113,7 @@ func (s *ContentStore) Verify(pointer Pointer) (bool, error) { return true, nil } -// ReadMetaObject will read a models.LFSMetaObject and return a reader +// ReadMetaObject will read a git_model.LFSMetaObject and return a reader func ReadMetaObject(pointer Pointer) (io.ReadCloser, error) { contentStore := NewContentStore() return contentStore.Get(pointer) -- cgit v1.2.3