Skip to content

Commit 76370ad

Browse files
committed
restored the status message
1 parent dc0d0ee commit 76370ad

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

command_sign.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)