mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -17,8 +17,8 @@ import ( | ||||
| 	"strings" | ||||
| 	"time" | ||||
|  | ||||
| 	"code.gitea.io/gitea/models" | ||||
| 	asymkey_model "code.gitea.io/gitea/models/asymkey" | ||||
| 	git_model "code.gitea.io/gitea/models/git" | ||||
| 	"code.gitea.io/gitea/models/perm" | ||||
| 	"code.gitea.io/gitea/modules/git" | ||||
| 	"code.gitea.io/gitea/modules/json" | ||||
| @@ -276,7 +276,7 @@ func runServ(c *cli.Context) error { | ||||
| 			return fail("Internal error", "Failed to sign JWT token: %v", err) | ||||
| 		} | ||||
|  | ||||
| 		tokenAuthentication := &models.LFSTokenResponse{ | ||||
| 		tokenAuthentication := &git_model.LFSTokenResponse{ | ||||
| 			Header: make(map[string]string), | ||||
| 			Href:   url, | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user