Skip to content

Commit 6908cfd

Browse files
authored
Enable signing with --detached-sign flag. (#657)
It was pointed out to me that gitsign doesn't work with jj out of the box. This is because jj invokes gpg commands with `-abu` instead of git's `-bsau`. -s = --sign, but -b = --detached-sign, which feels like should also enable signing mode. This change allows signing to be done if either flag is set. Signed-off-by: Billy Lynch <[email protected]>
1 parent dd65281 commit 6908cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/commands/root/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func New(cfg *config.Config) *cobra.Command {
7676
return item.RunE(item, cmd.Flags().Args())
7777
}
7878
}
79-
case o.FlagSign:
79+
case o.FlagSign, o.FlagDetachedSignature:
8080
return commandSign(o, s, args...)
8181
case o.FlagVerify:
8282
return commandVerify(o, s, args...)

0 commit comments

Comments
 (0)