~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Only print the progress message if on a TTY
[stgit]
/
stgit
/
commands
/
add.py
diff --git
a/stgit/commands/add.py
b/stgit/commands/add.py
index
fc9c5a7
..
7f5a0b3
100644
(file)
--- a/
stgit/commands/add.py
+++ b/
stgit/commands/add.py
@@
-40,4
+40,7
@@
def func(parser, options, args):
if len(args) < 1:
parser.error('incorrect number of arguments')
+ if not crt_series.get_current():
+ raise CmdException, 'No patches applied'
+
git.add(args)