From: Yann Dirson Date: Fri, 24 Nov 2006 22:57:55 +0000 (+0000) Subject: Bomb out when --ack and --sign are both passed to "refresh". X-Git-Tag: v0.14.3~408 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/bc7ba6e9f41917dbac2061b2e726162099fea920 Bomb out when --ack and --sign are both passed to "refresh". Old behaviour was silently ignoring --ack, which could be confusing. Signed-off-by: Yann Dirson --- diff --git a/stgit/commands/refresh.py b/stgit/commands/refresh.py index 610d18a..2949ecb 100644 --- a/stgit/commands/refresh.py +++ b/stgit/commands/refresh.py @@ -99,6 +99,8 @@ def func(parser, options, args): if options.sign: sign_str = 'Signed-off-by' + if options.ack: + raise CmdException, '--ack and --sign were both specified' elif options.ack: sign_str = 'Acked-by' else: