chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d0d7ee
)
Allow "stg add" when we have no stack
author
Karl Hasselström
<kha@treskal.com>
Sun, 2 Sep 2007 22:06:16 +0000
(
00:06
+0200)
committer
Karl Hasselström
<kha@treskal.com>
Sun, 2 Sep 2007 22:06:16 +0000
(
00:06
+0200)
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 <kha@treskal.com>
stgit/commands/add.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/commands/add.py
b/stgit/commands/add.py
index 7f5a0b3a443070dae55a673d467d3cedd1284d21..fc9c5a73a29673f06b683a85134531ad6d9520ea 100644
(file)
--- 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)