DORMANTno replies

[StGit PATCH] Allow "stg add" when we have no stack

From: Karl Hasselström <hidden>
Date: 2016-06-15 22:43:32
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>

---

 stgit/commands/add.py |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

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)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help