Bomb out when --ack and --sign are both passed to "refresh".
authorYann Dirson <ydirson@altern.org>
Fri, 24 Nov 2006 22:57:55 +0000 (22:57 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Fri, 24 Nov 2006 22:57:55 +0000 (22:57 +0000)
Old behaviour was silently ignoring --ack, which could be confusing.

Signed-off-by: Yann Dirson <ydirson@altern.org>
stgit/commands/refresh.py

index 610d18a..2949ecb 100644 (file)
@@ -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: