File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ func commandSign() error {
2323 return fmt .Errorf ("could not find identity matching specified user-id: %s" , * localUserOpt )
2424 }
2525
26+ // Git is looking for "\n[GNUPG:] SIG_CREATED ", meaning we need to print a
27+ // line before SIG_CREATED. BEGIN_SIGNING seems appropraite. GPG emits this,
28+ // though GPGSM does not.
29+ sBeginSigning .emit ()
30+
2631 cert , err := userIdent .Certificate ()
2732 if err != nil {
2833 return errors .Wrap (err , "failed to get idenity certificate" )
@@ -55,10 +60,6 @@ func commandSign() error {
5560 if err = sd .Sign ([]* x509.Certificate {cert }, signer ); err != nil {
5661 return errors .Wrap (err , "failed to sign message" )
5762 }
58- // Git is looking for "\n[GNUPG:] SIG_CREATED ", meaning we need to print a
59- // line before SIG_CREATED. BEGIN_SIGNING seems appropraite. GPG emits this,
60- // though GPGSM does not.
61- sBeginSigning .emit ()
6263 if * detachSignFlag {
6364 sd .Detached ()
6465 }
You can’t perform that action at this time.
0 commit comments