Bomb out when --ack and --sign are both passed to "refresh".
[stgit] / 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: