From bc7ba6e9f41917dbac2061b2e726162099fea920 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Fri, 24 Nov 2006 22:57:55 +0000 Subject: [PATCH] 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 --- stgit/commands/refresh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stgit/commands/refresh.py b/stgit/commands/refresh.py index 610d18a9..2949ecbc 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: -- 2.11.4.GIT