X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/26aab5b04fa4ba13f48948de73e497cf0a315ad1..b4d6a1c5539886c10f4d3965bd62afc793d8e912:/stgit/commands/rm.py diff --git a/stgit/commands/rm.py b/stgit/commands/rm.py index 2005005..91908a1 100644 --- a/stgit/commands/rm.py +++ b/stgit/commands/rm.py @@ -41,4 +41,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.rm(args, options.force)