[PATCH] stgit: export without --range does not export the last patch
The top patch is never exported.
Signed-off-by: Bryan Larsen <bryan.larsen@gmail.com>
---
stgit/commands/export.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/stgit/commands/export.py b/stgit/commands/export.py
--- a/stgit/commands/export.py
+++ b/stgit/commands/export.py
@@ -90,7 +90,7 @@ def func(parser, options, args):
raise MainException, 'Incorrect patch range order'
else:
start_idx = 0
- stop_idx = -1
+ stop_idx = len(applied)
patches = applied[start_idx:stop_idx]