@@ -100,7 +100,7 @@ type CommitFormOptions struct {
100100	UserCanPush               bool 
101101	RequireSigned             bool 
102102	WillSign                  bool 
103- 	SigningKey                 string 
103+ 	SigningKeyFormDisplay     string 
104104	WontSignReason            string 
105105	CanCreatePullRequest      bool 
106106	CanCreateBasePullRequest  bool 
@@ -156,20 +156,15 @@ func PrepareCommitFormOptions(ctx *Context, doer *user_model.User, targetRepo *r
156156	canCreateBasePullRequest  :=  targetRepo .BaseRepo  !=  nil  &&  targetRepo .BaseRepo .UnitEnabled (ctx , unit_model .TypePullRequests )
157157	canCreatePullRequest  :=  targetRepo .UnitEnabled (ctx , unit_model .TypePullRequests ) ||  canCreateBasePullRequest 
158158
159- 	displayKeyID , displayKeyIDErr  :=  asymkey_model .GetDisplaySigningKey (signKey )
160- 	if  displayKeyIDErr  !=  nil  {
161- 		log .Error ("Error whilst getting the display keyID: %s" , displayKeyIDErr .Error ())
162- 	}
163- 
164159	opts  :=  & CommitFormOptions {
165- 		TargetRepo :        targetRepo ,
166- 		WillSubmitToFork :  submitToForkedRepo ,
167- 		CanCommitToBranch : canCommitToBranch ,
168- 		UserCanPush :       canPushWithProtection ,
169- 		RequireSigned :     protectionRequireSigned ,
170- 		WillSign :          willSign ,
171- 		SigningKey :         displayKeyID ,
172- 		WontSignReason :    wontSignReason ,
160+ 		TargetRepo :             targetRepo ,
161+ 		WillSubmitToFork :       submitToForkedRepo ,
162+ 		CanCommitToBranch :      canCommitToBranch ,
163+ 		UserCanPush :            canPushWithProtection ,
164+ 		RequireSigned :          protectionRequireSigned ,
165+ 		WillSign :               willSign ,
166+ 		SigningKeyFormDisplay :  asymkey_model . GetDisplaySigningKey ( signKey ) ,
167+ 		WontSignReason :         wontSignReason ,
173168
174169		CanCreatePullRequest :     canCreatePullRequest ,
175170		CanCreateBasePullRequest : canCreateBasePullRequest ,
0 commit comments