X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/fa3700cdb74d4790363c4230304c99fb0703f0b9..539fb2921209bd3fd6165baa057f76f474aa5cb4:/stgit/commands/add.py diff --git a/stgit/commands/add.py b/stgit/commands/add.py index fc9c5a7..7f5a0b3 100644 --- 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)