mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Move keys to models/asymkey (#17917)
* Move keys to models/keys * Rename models/keys -> models/asymkey * change the missed package name * Fix package alias * Fix test * Fix docs * Fix test * Fix test * merge
This commit is contained in:
		@@ -20,6 +20,7 @@ import (
 | 
			
		||||
	"code.gitea.io/gitea/modules/log"
 | 
			
		||||
	"code.gitea.io/gitea/modules/setting"
 | 
			
		||||
	"code.gitea.io/gitea/modules/util"
 | 
			
		||||
	asymkey_service "code.gitea.io/gitea/services/asymkey"
 | 
			
		||||
 | 
			
		||||
	"github.com/unknwon/com"
 | 
			
		||||
)
 | 
			
		||||
@@ -134,7 +135,7 @@ func initRepoCommit(tmpPath string, repo *repo_model.Repository, u *user_model.U
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if git.CheckGitVersionAtLeast("1.7.9") == nil {
 | 
			
		||||
		sign, keyID, signer, _ := models.SignInitialCommit(tmpPath, u)
 | 
			
		||||
		sign, keyID, signer, _ := asymkey_service.SignInitialCommit(tmpPath, u)
 | 
			
		||||
		if sign {
 | 
			
		||||
			args = append(args, "-S"+keyID)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user