From: Karl Hasselström Date: Sun, 2 Sep 2007 22:06:16 +0000 (+0200) Subject: Allow "stg add" when we have no stack X-Git-Tag: v0.14~101 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/dee4e7d85eb805ac410e5e1a0052cfb4a40439b9?ds=sidebyside Allow "stg add" when we have no stack There's simply no reason not to allow this. It behaves just like git-add, so it's well-defined enough. Signed-off-by: Karl Hasselström --- diff --git a/stgit/commands/add.py b/stgit/commands/add.py index 7f5a0b3..fc9c5a7 100644 --- a/stgit/commands/add.py +++ b/stgit/commands/add.py @@ -40,7 +40,4 @@ 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)