{"thread":{"id":"9756","subject":"[StGit PATCH] Allow \"stg add\" when we have no stack","startedAt":"2007-09-02T23:59:04Z","lastAt":"2007-09-02T23:59:04Z","messageCount":1,"participants":["Karl Hasselström"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"52278","messageId":"20070902235846.23778.11160.stgit@yoghurt","threadId":"9756","inReplyTo":null,"subject":"[StGit PATCH] Allow \"stg add\" when we have no stack","fromName":"Karl Hasselström","fromEmail":"kha@treskal.com","sentAt":"2007-09-02T23:59:04Z","receivedAt":"2007-09-02T23:59:04Z","isPatch":true,"sender":{"key":"kha@treskal.com","avatar":"https://gravatar.com/avatar/f0120c734b5279b345075a28521e1ac66acb20c9913ffe9bf6ae97e53f7f3f13?d=mp&s=160"},"body":"There's simply no reason not to allow this. It behaves just like\ngit-add, so it's well-defined enough.\n\nSigned-off-by: Karl Hasselström <kha@treskal.com>\n\n---\n\n stgit/commands/add.py |    3 ---\n 1 files changed, 0 insertions(+), 3 deletions(-)\n\n\ndiff --git a/stgit/commands/add.py b/stgit/commands/add.py\nindex 7f5a0b3..fc9c5a7 100644\n--- a/stgit/commands/add.py\n+++ b/stgit/commands/add.py\n@@ -40,7 +40,4 @@ def func(parser, options, args):\n     if len(args) < 1:\n         parser.error('incorrect number of arguments')\n \n-    if not crt_series.get_current():\n-        raise CmdException, 'No patches applied'\n-\n     git.add(args)\n"}]}