chiark / gitweb /
Merge branch 'stable'
[stgit] / stgit / commands / unapplied.py
index 770220763b2b3755456fee253b2de0607edc4999..732334643c5d6de15ae1cd1b07a484f95bc63e0f 100644 (file)
@@ -41,10 +41,7 @@ def func(parser, options, args):
     if len(args) != 0:
         parser.error('incorrect number of arguments')
 
-    if options.branch:
-        s = directory.repository.get_stack(options.branch)
-    else:
-        s = directory.repository.current_stack
+    s = directory.repository.get_stack(options.branch)
 
     if options.count:
         out.stdout(len(s.patchorder.unapplied))