mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01:00 
			
		
		
		
	Move createrepository from module to service layer (#26927)
Repository creation depends on many models, so moving it to service layer is better.
This commit is contained in:
		| @@ -108,12 +108,7 @@ done | ||||
| } | ||||
|  | ||||
| // CreateDelegateHooks creates all the hooks scripts for the repo | ||||
| func CreateDelegateHooks(repoPath string) error { | ||||
| 	return createDelegateHooks(repoPath) | ||||
| } | ||||
|  | ||||
| // createDelegateHooks creates all the hooks scripts for the repo | ||||
| func createDelegateHooks(repoPath string) (err error) { | ||||
| func CreateDelegateHooks(repoPath string) (err error) { | ||||
| 	hookNames, hookTpls, giteaHookTpls := getHookTemplates() | ||||
| 	hookDir := filepath.Join(repoPath, "hooks") | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user