@@ -99,7 +99,7 @@ func SigningKey(ctx context.Context, repoPath string) (*git.SigningKey, *git.Sig
9999 return nil , nil
100100 }
101101
102- format , _ , _ := git .NewCommand ("config" , "--default" , git .KeyTypeOpenPGP , "--get" , "gpg.format" ).RunStdString (ctx , & git.RunOpts {Dir : repoPath })
102+ format , _ , _ := git .NewCommand ("config" , "--default" , git .SigningKeyFormatOpenPGP , "--get" , "gpg.format" ).RunStdString (ctx , & git.RunOpts {Dir : repoPath })
103103 signingKey , _ , _ := git .NewCommand ("config" , "--get" , "user.signingkey" ).RunStdString (ctx , & git.RunOpts {Dir : repoPath })
104104 signingName , _ , _ := git .NewCommand ("config" , "--get" , "user.name" ).RunStdString (ctx , & git.RunOpts {Dir : repoPath })
105105 signingEmail , _ , _ := git .NewCommand ("config" , "--get" , "user.email" ).RunStdString (ctx , & git.RunOpts {Dir : repoPath })
@@ -136,7 +136,7 @@ func PublicSigningKey(ctx context.Context, repoPath string) (content string, for
136136 if signingKey == nil {
137137 return "" , "" , nil
138138 }
139- if signingKey .Format == git .KeyTypeSSH {
139+ if signingKey .Format == git .SigningKeyFormatSSH {
140140 content , err := os .ReadFile (signingKey .KeyID )
141141 if err != nil {
142142 log .Error ("Unable to read SSH public key file in %s: %s, %v" , repoPath , signingKey , err )
0 commit comments