X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/26aab5b04fa4ba13f48948de73e497cf0a315ad1..e4fc1f59f679b4f0b5c6805feaf9da0df2cd370f:/stgit/commands/add.py diff --git a/stgit/commands/add.py b/stgit/commands/add.py index 999ce2b..7f5a0b3 100644 --- a/stgit/commands/add.py +++ b/stgit/commands/add.py @@ -27,7 +27,7 @@ from stgit import stack, git help = 'add files or directories to the repository' usage = """%prog [options] -Add a the files or directories passed as arguments to the +Add the files or directories passed as arguments to the repository. When a directory name is given, all the files and subdirectories are recursively added.""" @@ -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)