help = 'add files or directories to the repository'
usage = """%prog [options] <files/dirs...>
-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."""
if len(args) < 1:
parser.error('incorrect number of arguments')
+ if not crt_series.get_current():
+ raise CmdException, 'No patches applied'
+
git.add(args)