X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/3a284728a544e34d9db139c3ac589c36275c2416..cfe14b4f807febe8be658138b8565579ead331a2:/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)