chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2cf7e94
)
Bomb out when --ack and --sign are both passed to "refresh".
author
Yann Dirson
<ydirson@altern.org>
Fri, 24 Nov 2006 22:57:55 +0000
(22:57 +0000)
committer
Catalin 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
patch
|
blob
|
blame
|
history
diff --git
a/stgit/commands/refresh.py
b/stgit/commands/refresh.py
index 610d18a9497a2cf8e357b0f29eed04b94bf01fa4..2949ecbc6eae8bd3fee5f59a6e889b5766f17be9 100644
(file)
--- 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.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:
elif options.ack:
sign_str = 'Acked-by'
else: